Click or drag to resize
UnitOfWorkCommit Method (ITransaction)
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.

Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Assembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax
public int Commit(
	ITransaction transactionToUse
)

Parameters

transactionToUse
Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
Transaction to use. All entities to process will be added to this transaction, unless they're already part of another transaction.

Return Value

Type: Int32
The total # of entities affected by all actions performed in the Commit method
Exceptions
ExceptionCondition
ArgumentNullExceptionwhen transactionToUse is null
Remarks
It will not commit nor rollback the transaction.
See Also