Click or drag to resize
DatabaseConnectionRunInTransaction Method
Overload List
  NameDescription
Public methodStatic memberRunInTransaction(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.
Public methodStatic memberRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, 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.
Public methodStatic memberRunInTransaction(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.
Public methodStatic memberRunInTransactionT(IDatabaseConnection, FuncIDatabaseConnection, T, TransactionMode)
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.
Top
See Also