Table of Contents

Class TransactionStartingEventData

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

The DiagnosticSource event payload base class for RelationalEventId transaction events.

public class TransactionStartingEventData : DbContextEventData
Inheritance
TransactionStartingEventData

Constructors

TransactionStartingEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData, string>, DbContext, IsolationLevel, Guid, Guid, bool, DateTimeOffset)

Constructs the event payload.

public TransactionStartingEventData(EventDefinitionBase eventDefinition, Func<EventDefinitionBase, EventData, string> messageGenerator, DbContext context, IsolationLevel isolationLevel, Guid transactionId, Guid connectionId, bool async, DateTimeOffset startTime)

Parameters

eventDefinition EventDefinitionBase

The event definition.

messageGenerator Func<EventDefinitionBase, EventData, string>

A delegate that generates a log message for this event.

context DbContext

The Microsoft.EntityFrameworkCore.DbContext currently in use, or null if not known.

isolationLevel IsolationLevel

The transaction isolation level.

transactionId Guid

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

connectionId Guid

A correlation ID that identifies the DbConnection instance being used.

async bool

Indicates whether or not the transaction is being used asynchronously.

startTime DateTimeOffset

The start time of this event.

Properties

ConnectionId

A correlation ID that identifies the DbConnection instance being used.

public virtual Guid ConnectionId { get; }

Property Value

Guid

IsAsync

Indicates whether or not the transaction is being used asynchronously.

public virtual bool IsAsync { get; }

Property Value

bool

IsolationLevel

The transaction isolation level.

public virtual IsolationLevel IsolationLevel { get; }

Property Value

IsolationLevel

StartTime

The start time of this event.

public virtual DateTimeOffset StartTime { get; }

Property Value

DateTimeOffset

TransactionId

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

public virtual Guid TransactionId { get; }

Property Value

Guid