Class TransactionExtensions
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Extension methods for database transactions that do not depend on a specific database provider.
[SuppressMessage("Design", "CA1068:CancellationToken parameters must come last", Justification = "Overload for easier consumption.")]
public static class TransactionExtensions
- Inheritance
-
TransactionExtensions
- Inherited Members
Methods
- CreateCommand(DbTransaction, CommandType, string, int)
Creates a DbCommand on the transaction's connection, enlisted in the transaction, with the command type, text, and timeout already set.
- CreateCommand(IDbTransaction, CommandType, string, int)
Creates an IDbCommand on the transaction's connection, enlisted in the transaction, with the command type, text, and timeout already set.
- CreateStoredProcedureCommand(DbTransaction, string, int)
Creates a stored procedure DbCommand on the transaction's connection, enlisted in the transaction.
- CreateStoredProcedureCommand(IDbTransaction, string, int)
Creates a stored procedure IDbCommand on the transaction's connection, enlisted in the transaction.
- CreateTextCommand(DbTransaction, string, int)
Creates a text DbCommand on the transaction's connection, enlisted in the transaction.
- CreateTextCommand(IDbTransaction, string, int)
Creates a text IDbCommand on the transaction's connection, enlisted in the transaction.
- ExecuteTransactionAsync(DbConnection, IsolationLevel, Func<DbTransaction, ValueTask>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync(DbConnection, IsolationLevel, CancellationToken, Func<DbTransaction, ValueTask>)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync(DbConnection, Func<DbTransaction, ValueTask>, IsolationLevel, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync(DbConnection, Func<DbTransaction, ValueTask>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync<T>(DbConnection, IsolationLevel, Func<DbTransaction, ValueTask<T>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync<T>(DbConnection, IsolationLevel, CancellationToken, Func<DbTransaction, ValueTask<T>>)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync<T>(DbConnection, Func<DbTransaction, ValueTask<T>>, IsolationLevel, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionAsync<T>(DbConnection, Func<DbTransaction, ValueTask<T>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync(DbConnection, IsolationLevel, Func<DbTransaction, ValueTask<bool>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync(DbConnection, IsolationLevel, CancellationToken, Func<DbTransaction, ValueTask<bool>>)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync(DbConnection, Func<DbTransaction, ValueTask<bool>>, IsolationLevel, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync(DbConnection, Func<DbTransaction, ValueTask<bool>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, IsolationLevel, Func<DbTransaction, ValueTask<(bool Commit, T Value)>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, IsolationLevel, CancellationToken, Func<DbTransaction, ValueTask<(bool Commit, T Value)>>)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, Func<DbTransaction, CancellationToken, ValueTask<(bool Commit, T Value)>>, IsolationLevel, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, Func<DbTransaction, CancellationToken, ValueTask<(bool Commit, T Value)>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, Func<DbTransaction, ValueTask<(bool Commit, T Value)>>, IsolationLevel, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.
- ExecuteTransactionConditionalAsync<T>(DbConnection, Func<DbTransaction, ValueTask<(bool Commit, T Value)>>, CancellationToken)
Asynchronously begins a transaction on the connection, invokes the action, and commits or rolls back the transaction.