Partilhar via


CommandEventData Construtores

Definição

Sobrecargas

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Constrói o conteúdo do evento.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)
Obsoleto.

Constrói o conteúdo do evento.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, CommandSource)

Constrói o conteúdo do evento.

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Origem:
CommandEventData.cs
Origem:
CommandEventData.cs

Constrói o conteúdo do 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

A definição de evento.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Um delegado que gera uma mensagem de log para esse evento.

command
DbCommand

O DbCommand.

executeMethod
DbCommandMethod

O método DbCommand.

commandId
Guid

Uma ID de correlação que identifica a DbCommand instância que está sendo usada.

connectionId
Guid

Uma ID de correlação que identifica a DbConnection instância que está sendo usada.

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.

Aplica-se a

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset)

Origem:
CommandEventData.cs
Origem:
CommandEventData.cs
Origem:
CommandEventData.cs
Origem:
CommandEventData.cs

Cuidado

Use the overload with CommandSource

Constrói o conteúdo do 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

A definição de 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.

command
DbCommand

O DbCommand.

context
DbContext

O DbContext que está sendo usado no momento, para nulo, se não for conhecido.

executeMethod
DbCommandMethod

O método DbCommand.

commandId
Guid

Uma ID de correlação que identifica a DbCommand instância que está sendo usada.

connectionId
Guid

Uma ID de correlação que identifica a DbConnection instância que está sendo usada.

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.

Atributos

Aplica-se a

CommandEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, CommandSource)

Origem:
CommandEventData.cs
Origem:
CommandEventData.cs
Origem:
CommandEventData.cs
Origem:
CommandEventData.cs

Constrói o conteúdo do 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

A definição de 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.

command
DbCommand

O DbCommand.

context
DbContext

O DbContext que está sendo usado no momento, para nulo, se não for conhecido.

executeMethod
DbCommandMethod

O método DbCommand.

commandId
Guid

Uma ID de correlação que identifica a DbCommand instância que está sendo usada.

connectionId
Guid

Uma ID de correlação que identifica a DbConnection instância que está sendo usada.

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.

commandSource
CommandSource

Origem do comando.

Aplica-se a