Partager via


CommandEventData Constructeurs

Définition

Surcharges

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

Construit la charge utile d’événement.

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

Construit la charge utile d’événement.

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

Construit la charge utile d’événement.

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

Source:
CommandEventData.cs
Source:
CommandEventData.cs

Construit la charge utile d’événement.

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)

Paramètres

eventDefinition
EventDefinitionBase

Définition d’événement.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Délégué qui génère un message de journal pour cet événement.

command
DbCommand

L’DbCommandopérateur

executeMethod
DbCommandMethod

Méthode DbCommand

commandId
Guid

ID de corrélation qui identifie le DbCommand instance utilisé.

connectionId
Guid

ID de corrélation qui identifie le DbConnection instance utilisé.

async
Boolean

Indique si la commande a été exécutée de manière asynchrone.

logParameterValues
Boolean

Indique si l’application autorise la journalisation des valeurs de paramètres.

startTime
DateTimeOffset

Heure de début de cet événement.

S’applique à

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

Attention

Use the overload with CommandSource

Construit la charge utile d’événement.

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)

Paramètres

eventDefinition
EventDefinitionBase

Définition d’événement.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Délégué qui génère un message de journal pour cet événement.

connection
DbConnection

en DbConnection cours d’utilisation.

command
DbCommand

L’DbCommandopérateur

context
DbContext

actuellement DbContext utilisé, à null s’il n’est pas connu.

executeMethod
DbCommandMethod

Méthode DbCommand

commandId
Guid

ID de corrélation qui identifie le DbCommand instance utilisé.

connectionId
Guid

ID de corrélation qui identifie le DbConnection instance utilisé.

async
Boolean

Indique si la commande a été exécutée de manière asynchrone.

logParameterValues
Boolean

Indique si l’application autorise la journalisation des valeurs de paramètres.

startTime
DateTimeOffset

Heure de début de cet événement.

Attributs

S’applique à

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

Construit la charge utile d’événement.

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)

Paramètres

eventDefinition
EventDefinitionBase

Définition d’événement.

messageGenerator
Func<EventDefinitionBase,EventData,String>

Délégué qui génère un message de journal pour cet événement.

connection
DbConnection

en DbConnection cours d’utilisation.

command
DbCommand

L’DbCommandopérateur

context
DbContext

actuellement DbContext utilisé, à null s’il n’est pas connu.

executeMethod
DbCommandMethod

Méthode DbCommand

commandId
Guid

ID de corrélation qui identifie le DbCommand instance utilisé.

connectionId
Guid

ID de corrélation qui identifie le DbConnection instance utilisé.

async
Boolean

Indique si la commande a été exécutée de manière asynchrone.

logParameterValues
Boolean

Indique si l’application autorise la journalisation des valeurs de paramètres.

startTime
DateTimeOffset

Heure de début de cet événement.

commandSource
CommandSource

Source de la commande.

S’applique à