Table of Contents

Class MongoTransactionManager

Namespace
MongoDB.EntityFrameworkCore.Storage
Assembly
MongoDB.EntityFrameworkCore.dll

Placeholder for a MongoDB transaction manager that for now just flags that transactions are not supported in case somebody attempts to use them.

public class MongoTransactionManager : IDbContextTransactionManager, IResettableService, ITransactionEnlistmentManager
Inheritance
MongoTransactionManager
Implements
Inherited Members

Properties

CurrentTransaction

Gets the current transaction.

EnlistedTransaction

The currently enlisted transaction.

Methods

BeginTransaction()

Begins a new transaction.

BeginTransactionAsync(CancellationToken)

Asynchronously begins a new transaction.

CommitTransaction()

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

CommitTransactionAsync(CancellationToken)

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

EnlistTransaction(Transaction?)

Specifies an existing Transaction to be used for database operations.

ResetState()

Resets the service so that it can be used from the pool.

ResetStateAsync(CancellationToken)

Resets the service so that it can be used from the pool.

RollbackTransaction()

Discards all changes made to the database in the current transaction.

RollbackTransactionAsync(CancellationToken)

Discards all changes made to the database in the current transaction.