Begins a transaction.
Namespace:
Mindscape.LightSpeedAssembly: 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 IDbTransactionExamples
CopyC#
using (IDbTransaction tx = unitOfWork.BeginTransaction(IsolationLevel.RepeatableRead)) { // ... }