Table of Contents

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

databaseFacade DatabaseFacade

The DatabaseFacade for the context.

transactionOptions TransactionOptions

The MongoDB.Driver.TransactionOptions that control the behavior of this transaction.

Returns

IDbContextTransaction

The IDbContextTransaction that has begun.