Commits unit of work in a transaction and defines whether an automated transaction encapsulaption and rollback in case of error is performed.
Namespace: MonoSoftware.LLBLGenAssembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public virtual int CommitUnitOfWork(
UnitOfWork2 unitOfWork,
bool autoCommit
) |
Visual Basic |
---|
Public Overridable Function CommitUnitOfWork (
unitOfWork As UnitOfWork2,
autoCommit As Boolean
) As Integer |
Visual C++ |
---|
public:
virtual int CommitUnitOfWork(
UnitOfWork2^ unitOfWork,
bool autoCommit
) |
F# |
---|
abstract CommitUnitOfWork :
unitOfWork : UnitOfWork2 *
autoCommit : bool -> int
override 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
Implements
IRepository..::..CommitUnitOfWork(UnitOfWork2, Boolean)See Also