Click or drag to resize
UnitOfWorkIUnitOfWorkCoreCommitAsync Method
Async variant of Commit(ITransactionController) 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.3.0)
Task<int> IUnitOfWorkCore.CommitAsync(
	ITransactionController controller,
	CancellationToken cancellationToken


Type: SD.LLBLGen.Pro.ORMSupportClassesITransactionController
The controller of the transaction to use.
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskInt32
The total # of entities affected by all actions performed in the Commit method


IUnitOfWorkCoreCommitAsync(ITransactionController, CancellationToken)
If the controller specified has a transaction open, the auto-commit flag is set to false and the transaction is committed when the transaction of the passed in controller is committed, otherwise the auto-commit flag is set to true as the transaction is started by the unit of work.
See Also