CommandEventData Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
Construye la carga del evento.
public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), command As DbCommand, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues 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.
- executeMethod
- DbCommandMethod
El método DbCommand .
- connectionId
- Guid
Identificador de correlación que identifica la DbConnection instancia que se usa.
- async
- Boolean
Indica si el comando se ejecutó de forma asincrónica.
- logParameterValues
- Boolean
Indica si la aplicación permite o no el registro de valores de parámetro.
- startTime
- DateTimeOffset
Hora de inicio de este evento.
Se aplica a
CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
Precaución
Use the overload with CommandSource
Construye la carga del evento.
public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
[System.Obsolete("Use the overload with CommandSource")]
public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues 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.
- connection
- DbConnection
objeto DbConnection que se usa.
- executeMethod
- DbCommandMethod
El método DbCommand .
- connectionId
- Guid
Identificador de correlación que identifica la DbConnection instancia que se usa.
- async
- Boolean
Indica si el comando se ejecutó de forma asincrónica.
- logParameterValues
- Boolean
Indica si la aplicación permite o no el registro de valores de parámetro.
- startTime
- DateTimeOffset
Hora de inicio de este evento.
- Atributos
Se aplica a
CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, CommandSource)
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
- Source:
- CommandEventData.cs
Construye la carga del evento.
public CommandEventData (Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase eventDefinition, Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase,Microsoft.EntityFrameworkCore.Diagnostics.EventData,string> messageGenerator, System.Data.Common.DbConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, bool logParameterValues, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * bool * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, command As DbCommand, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, commandSource As CommandSource)
Parámetros
- eventDefinition
- EventDefinitionBase
Definición del evento.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
Delegado que genera un mensaje de registro para este evento.
- connection
- DbConnection
objeto DbConnection que se usa.
- executeMethod
- DbCommandMethod
El método DbCommand .
- connectionId
- Guid
Identificador de correlación que identifica la DbConnection instancia que se usa.
- async
- Boolean
Indica si el comando se ejecutó de forma asincrónica.
- logParameterValues
- Boolean
Indica si la aplicación permite o no el registro de valores de parámetro.
- startTime
- DateTimeOffset
Hora de inicio de este evento.
- commandSource
- CommandSource
Origen del comando.