IDbContextTransaction.CommitAsync(CancellationToken) Method

Definition

Commits all changes made to the database in the current transaction asynchronously.

public System.Threading.Tasks.Task CommitAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member CommitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CommitAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A Task representing the asynchronous operation.

Exceptions

Remarks

See Transactions in EF Core for more information and examples.

Applies to