Interface IAsyncDbTransaction
Wrapper over DbTransaction instance with asynchronous operations, missing from DbTransaction. Includes only operations, used by Linq To DB.
public interface IAsyncDbTransaction : IDisposable, IAsyncDisposable
- Inherited Members
- Extension Methods
Properties
Transaction
Gets underlying transaction instance.
DbTransaction Transaction { get; }
Property Value
Methods
Commit()
Commits the database transaction.
void Commit()
CommitAsync(CancellationToken)
Commits transaction asynchronously.
Task CommitAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenAsynchronous operation cancellation token.
Returns
- Task
Asynchronous operation completion task.
Rollback()
Rolls back a transaction from a pending state.
void Rollback()
RollbackAsync(CancellationToken)
Rollbacks transaction asynchronously.
Task RollbackAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationTokenAsynchronous operation cancellation token.
Returns
- Task
Asynchronous operation completion task.