DbConnector.BeginTransactionAsync method (1 of 2)

Begins a transaction.

public abstract ValueTask<DbTransactionDisposer> BeginTransactionAsync(
    CancellationToken cancellationToken = default(CancellationToken))
parameter description
cancellationToken The cancellation token.

Return Value

An IDisposable that should be disposed when the transaction has been committed or should be rolled back.

See Also


DbConnector.BeginTransactionAsync method (2 of 2)

Begins a transaction.

public abstract ValueTask<DbTransactionDisposer> BeginTransactionAsync(
    IsolationLevel isolationLevel, CancellationToken cancellationToken = default(CancellationToken))
parameter description
isolationLevel The isolation level.
cancellationToken The cancellation token.

Return Value

An IDisposable that should be disposed when the transaction has been committed or should be rolled back.

See Also