Method BeginTransaction
- Namespace
- MongoDB.EntityFrameworkCore
- Assembly
- MongoDB.EntityFrameworkCore.dll
BeginTransaction(DatabaseFacade, TransactionOptions)
Begin a new transaction with the supplied transactionOptions.
public static IDbContextTransaction BeginTransaction(this DatabaseFacade databaseFacade, TransactionOptions transactionOptions)
Parameters
databaseFacadeDatabaseFacadeThe DatabaseFacade for the context.
transactionOptionsTransactionOptionsThe MongoDB.Driver.TransactionOptions that control the behavior of this transaction.
Returns
- IDbContextTransaction
The IDbContextTransaction that has begun.