1

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?

skaffman
  • 398,947
  • 96
  • 818
  • 769
newdayrising
  • 3,762
  • 4
  • 27
  • 31

2 Answers2

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.