| DatabaseConnectionTryRunInTransaction Method |
| Name | Description | |
|---|---|---|
| TryRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection) |
Runs the Action action in a transaction and returns the function result.
If the database is not currently in a transaction, a new transaction is created using
BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within
a savepoint block but not fully committed to the database until the enclosing transaction is committed.
| |
| TryRunInTransaction(IDatabaseConnection, ActionIDatabaseConnection, TransactionMode) |
Runs the Action action in a transaction and returns the function result.
If the database is not currently in a transaction, a new transaction is created using
the provided TransactionMode and committed. Otherwise the transaction is created within
a savepoint block but not fully committed to the database until the enclosing transaction is committed.
| |
| TryRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, T) |
Runs the function f in a transaction and returns the function result.
If the database is not currently in a transaction, a new transaction is created using
BeginTransaction with TransactionMode.Deferred and committed. Otherwise the transaction is created within
a savepoint block but not fully committed to the database until the enclosing transaction is committed.
| |
| TryRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, TransactionMode, T) |
Runs the function f in a transaction and returns the function result.
If the database is not currently in a transaction, a new transaction is created using
the provided TransactionMode and committed. Otherwise the transaction is created within
a savepoint block but not fully committed to the database until the enclosing transaction is committed.
|