Compartir a través de


ConnectionEventData Constructores

Definición

Sobrecargas

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Construye la carga del evento.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Construye la carga del evento.

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, Guid, Boolean, DateTimeOffset)

Construye la carga del evento.

public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, 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.

connectionId
Guid

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

async
Boolean

Indica si la operación se está produciendo de forma asincrónica.

startTime
DateTimeOffset

Hora de inicio de este evento.

Se aplica a

ConnectionEventData(EventDefinitionBase, Func<EventDefinitionBase,EventData,String>, DbConnection, DbContext, Guid, Boolean, DateTimeOffset)

Construye la carga del evento.

public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext context, Guid connectionId, bool async, DateTimeOffset startTime);
public ConnectionEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.DbContext? context, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, 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

Que DbContext se usa actualmente, en null si no se conoce.

connectionId
Guid

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

async
Boolean

Indica si la operación se está produciendo de forma asincrónica.

startTime
DateTimeOffset

Hora de inicio de este evento.

Se aplica a