Creates a new transaction.
Syntax
| Visual Basic (Declaration) | |
|---|
Protected Overridable Function CreateTransaction( _
ByVal level As IsolationLevel, _
ByVal connection As IDbConnection _
) As SqlTransactionBase |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As SqlStorageBase
Dim level As IsolationLevel
Dim connection As IDbConnection
Dim value As SqlTransactionBase
value = instance.CreateTransaction(level, connection)
|
Parameters
- level
- IsolationLevel of the transaction.
- connection
- The connection that is used to start the transaction.
Return Value
Returns an instance of the
SqlTransactionBase object.
Requirements
Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family
See Also