Compartir a través de


TransactionStartingEventData Constructor

Definición

Construye la carga del evento.

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

Parámetros

eventDefinition
EventDefinitionBase

Definición del evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Delegado que genera un mensaje de registro para este evento.

context
DbContext

Actualmente DbContext en uso, o null si no se conoce.

isolationLevel
IsolationLevel

Nivel de aislamiento de transacción.

transactionId
Guid

Identificador de correlación que identifica la transacción de Entity Framework que se usa.

connectionId
Guid

Identificador de correlación que identifica la DbConnection instancia que se está usando.

async
Boolean

Indica si la transacción se usa de forma asincrónica.

startTime
DateTimeOffset

Hora de inicio de este evento.

Se aplica a