Method BeginTransaction
| Improve this Doc View SourceBeginTransaction(String)
Begins a transaction.
Declaration
public ITransaction BeginTransaction(string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the transaction. |
Returns
| Type | Description |
|---|---|
| ITransaction | The transaction object. |
BeginTransaction(Nullable<IsolationLevel>, String)
Begins a transaction at specified isolation level.
Declaration
public ITransaction BeginTransaction(IsolationLevel? isolation, string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.Data.IsolationLevel> | isolation | The isolation level. |
| System.String | name | The name of the transaction. |
Returns
| Type | Description |
|---|---|
| ITransaction | The transaction object. |