When saving an entity with related entities in LLBLGen, will it automatically wrap the DB calls inside a transaction, or could some portion of the save fail while other portions succeed?
Asked
Active
Viewed 615 times
2 Answers
1
Recursive saves are always wrapped in a transaction. Single saves are only wrapped into a transaction if the entity is in a TPE inheritance hierarchy. Otherwise the single INSERT/UPDATE statement isn't wrapped into a transaction as it is already a transaction (atomic unit) on its own.

Frans Bouma
- 8,259
- 1
- 27
- 28
0
Yes, when saving an Entity and it's related entities, using the recurse flag, it should encapsulate the calls into a single transaction.
-
I don't disagree that it should, but do you have any source information that confirms this behavior? – newdayrising Nov 10 '10 at 20:54