Interface IWithTransactions
Extend your DAO interface with this to begin transactions without access to the connection. Pass the returned transaction as an IDbTransaction parameter to DAO methods.
Namespace: Activout.DatabaseClient
Assembly: Activout.DatabaseClient.dll
Syntax
public interface IWithTransactions
Methods
| Edit this page View SourceBeginTransaction(IsolationLevel)
Begins a transaction.
Declaration
IDbTransaction BeginTransaction(IsolationLevel isolationLevel = IsolationLevel.Unspecified)
Parameters
| Type | Name | Description |
|---|---|---|
| IsolationLevel | isolationLevel | The isolation level. |
Returns
| Type | Description |
|---|---|
| IDbTransaction | The transaction. Commit or roll back and dispose it when done. |