UnitOfWork2IUnitOfWorkCoreCommit Method (ITransactionController, Boolean) |
Commits this unit of work. It will first add all entities in the added collections to the correct bins, then it will start
by first inserting all new entities, then saving all updates and then performing the deletes. This order can be controlled by the
constructor of the unit of work which allows users to define a different work order.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax int IUnitOfWorkCore.Commit(
ITransactionController controller,
bool autoCommit
)
Private Function Commit (
controller As ITransactionController,
autoCommit As Boolean
) As Integer Implements IUnitOfWorkCore.Commit
Parameters
- controller
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransactionController
The controller of the ado.net transaction to use. - autoCommit
- Type: SystemBoolean
if true, it will commit/rollback the transaction passed in using the following rules:
- if no exception is thrown: commit
- if an exception is thrown: rollback
Return Value
Type:
Int32The total # of entities affected by all actions performed in the Commit method
Implements
IUnitOfWorkCoreCommit(ITransactionController, Boolean)See Also