Commits unit of work in a transaction and defines whether an automated transaction encapsulaption and rollback in case of error is performed.

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
int CommitUnitOfWork(
	UnitOfWork2 unitOfWork,
	bool autoCommit
)
Visual Basic
Function CommitUnitOfWork ( 
	unitOfWork As UnitOfWork2,
	autoCommit As Boolean
) As Integer
Visual C++
int CommitUnitOfWork(
	UnitOfWork2^ unitOfWork, 
	bool autoCommit
)
F#
abstract CommitUnitOfWork : 
        unitOfWork : UnitOfWork2 * 
        autoCommit : bool -> int 

Parameters

unitOfWork
Type: UnitOfWork2
Unit of work to commit
autoCommit
Type: System..::..Boolean
If true, automated transaction encapsulaption and rollback in case of error is performed.

Return Value

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

See Also