Exemple #1
0
 /// <summary>
 ///     Asynchronously starts a new transaction.
 /// </summary>
 /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete.</param>
 /// <returns>
 ///     A task that represents the asynchronous transaction initialization. The task result contains a <see cref="IDbContextTransaction" />
 ///     that represents the started transaction.
 /// </returns>
 public virtual Task <IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default(CancellationToken))
 => TransactionManager.BeginTransactionAsync(cancellationToken);