DatabaseConnectionRunInTransaction Method (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.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax Exceptions Exception | Condition |
---|
Exception | The exception that caused the transaction to be aborted and rolled back. |
See Also