Table of Contents

Class MongoTransactionStartingEventData

Namespace
MongoDB.EntityFrameworkCore.Diagnostics
Assembly
MongoDB.EntityFrameworkCore.dll

A DiagnosticSource event payload class for MongoDB transaction events.

public class MongoTransactionStartingEventData : DbContextEventData
Inheritance
MongoTransactionStartingEventData
Inherited Members

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

MongoTransactionStartingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, DbContext?, IClientSession, TransactionOptions, Guid, bool, DateTimeOffset)

Constructs the event payload.

Properties

IsAsync

Indicates whether or not the transaction is being used asynchronously.

Session

The MongoDB.Driver.IClientSession being used for this transaction.

StartTime

The start time of this event.

TransactionId

A correlation ID that identifies the Entity Framework transaction being used.

TransactionOptions

The TransactionOptions used in this transaction.