Begins a transaction.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
IDbTransaction BeginTransaction(
	IsolationLevel isolationLevel
)
Visual Basic (Declaration)
Function BeginTransaction ( _
	isolationLevel As IsolationLevel _
) As IDbTransaction

Parameters

isolationLevel
Type: System.Data..::.IsolationLevel
The IsolationLevel of the transaction

Return Value

An IDbTransaction

Examples

CopyC#
using (IDbTransaction tx = unitOfWork.BeginTransaction(IsolationLevel.RepeatableRead))
{
  // ...
}

See Also