Begins a transaction.
public abstract ValueTask<DbTransactionDisposer> BeginTransactionAsync(
CancellationToken cancellationToken = default)
parameter | description |
---|---|
cancellationToken | The cancellation token. |
An IDisposable that should be disposed when the transaction has been committed or should be rolled back.
Begins a transaction.
public abstract ValueTask<DbTransactionDisposer> BeginTransactionAsync(
IsolationLevel isolationLevel, CancellationToken cancellationToken = default)
parameter | description |
---|---|
isolationLevel | The isolation level. |
cancellationToken | The cancellation token. |
An IDisposable that should be disposed when the transaction has been committed or should be rolled back.