CommandExecutedEventData Construtores
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
CommandExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Object, Boolean, Boolean, DateTimeOffset, TimeSpan)
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
Constrói o conteúdo do evento.
public CommandExecutedEventData (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, object result, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * obj * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData
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, result As Object, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan)
Parâmetros
- eventDefinition
- EventDefinitionBase
A definição do evento.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
Um delegado que gera uma mensagem de log para esse evento.
- executeMethod
- DbCommandMethod
O DbCommand método que foi usado para executar o comando.
- connectionId
- Guid
Uma ID de correlação que identifica a DbConnection instância que está sendo usada.
- result
- Object
O resultado da execução da operação.
- async
- Boolean
Indica se o comando foi executado de forma assíncrona ou não.
- logParameterValues
- Boolean
Indica se o aplicativo permite ou não o registro em log de valores de parâmetro.
- startTime
- DateTimeOffset
A hora de início deste evento.
- duration
- TimeSpan
A duração desse evento.
Aplica-se a
CommandExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Object, Boolean, Boolean, DateTimeOffset, TimeSpan)
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
Cuidado
Use the overload with CommandSource
Constrói o conteúdo do evento.
public CommandExecutedEventData (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, object result, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
[System.Obsolete("Use the overload with CommandSource")]
public CommandExecutedEventData (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, object? result, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData : 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 * obj * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData : 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 * obj * bool * bool * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData
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, result As Object, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan)
Parâmetros
- eventDefinition
- EventDefinitionBase
A definição do evento.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
Um delegado que gera uma mensagem de log para esse evento.
- connection
- DbConnection
O DbConnection que está sendo usado.
- executeMethod
- DbCommandMethod
O DbCommand método que foi usado para executar o comando.
- connectionId
- Guid
Uma ID de correlação que identifica a DbConnection instância que está sendo usada.
- result
- Object
O resultado da execução da operação.
- async
- Boolean
Indica se o comando foi executado de forma assíncrona ou não.
- logParameterValues
- Boolean
Indica se o aplicativo permite ou não o registro em log de valores de parâmetro.
- startTime
- DateTimeOffset
A hora de início deste evento.
- duration
- TimeSpan
A duração desse evento.
- Atributos
Aplica-se a
CommandExecutedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Object, Boolean, Boolean, DateTimeOffset, TimeSpan, CommandSource)
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
- Origem:
- CommandExecutedEventData.cs
Constrói o conteúdo do evento.
public CommandExecutedEventData (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, object? result, bool async, bool logParameterValues, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData : 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 * obj * bool * bool * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandExecutedEventData
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, result As Object, async As Boolean, logParameterValues As Boolean, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource)
Parâmetros
- eventDefinition
- EventDefinitionBase
A definição do evento.
- messageGenerator
- Func<EventDefinitionBase,EventData,String>
Um delegado que gera uma mensagem de log para esse evento.
- connection
- DbConnection
O DbConnection que está sendo usado.
- executeMethod
- DbCommandMethod
O DbCommand método que foi usado para executar o comando.
- connectionId
- Guid
Uma ID de correlação que identifica a DbConnection instância que está sendo usada.
- result
- Object
O resultado da execução da operação.
- async
- Boolean
Indica se o comando foi executado de forma assíncrona ou não.
- logParameterValues
- Boolean
Indica se o aplicativo permite ou não o registro em log de valores de parâmetro.
- startTime
- DateTimeOffset
A hora de início deste evento.
- duration
- TimeSpan
A duração desse evento.
- commandSource
- CommandSource
Origem do comando.
Aplica-se a
Entity Framework