Share via


TransactionEventData Constructors

Definition

Overloads

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, Guid, Guid, DateTimeOffset)

Constructs the event payload.

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, DateTimeOffset)

Constructs the event payload.

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, Guid, Guid, DateTimeOffset)

Constructs the event payload.

public TransactionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Guid transactionId, Guid connectionId, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Guid * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, transactionId As Guid, connectionId As Guid, startTime As DateTimeOffset)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

transaction
DbTransaction

The DbTransaction.

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.

startTime
DateTimeOffset

The start time of this event.

Applies to

TransactionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbTransaction, DbContext, Guid, Guid, Boolean, DateTimeOffset)

Constructs the event payload.

public TransactionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext context, Guid transactionId, Guid connectionId, bool async, DateTimeOffset startTime);
public TransactionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.DbContext? context, Guid transactionId, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.TransactionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), transaction As DbTransaction, context As DbContext, transactionId As Guid, connectionId As Guid, async As Boolean, startTime As DateTimeOffset)

Parameters

eventDefinition
EventDefinitionBase

The event definition.

messageGenerator
Func<EventDefinitionBase,EventData,String>

A delegate that generates a log message for this event.

transaction
DbTransaction

The DbTransaction.

context
DbContext

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

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
Boolean

Indicates whether or not the transaction is being used asynchronously.

startTime
DateTimeOffset

The start time of this event.

Applies to