Table of Contents

Interface IAsyncDbTransaction

Namespace
LinqToDB.Async
Assembly
linq2db.dll

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

DbTransaction

Methods

Commit()

Commits the database transaction.

void Commit()

CommitAsync(CancellationToken)

Commits transaction asynchronously.

Task CommitAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Asynchronous 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 CancellationToken

Asynchronous operation cancellation token.

Returns

Task

Asynchronous operation completion task.