CommandCorrelatedEventData Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset) |
Obsolète.
Construit la charge utile de l’événement. |
CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset, CommandSource) |
Construit la charge utile de l’événement. |
CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset)
Attention
Use the overload with CommandSource
Construit la charge utile de l’événement.
public CommandCorrelatedEventData (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, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime);
[System.Obsolete("Use the overload with CommandSource")]
public CommandCorrelatedEventData (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, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async 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.
- executeMethod
- DbCommandMethod
Méthode DbCommand
- 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.
- startTime
- DateTimeOffset
Heure de début de cet événement.
- Attributs
S’applique à
CommandCorrelatedEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbContext, DbCommandMethod, Guid, Guid, Boolean, DateTimeOffset, CommandSource)
Construit la charge utile de l’événement.
public CommandCorrelatedEventData (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, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod executeMethod, Guid commandId, Guid connectionId, bool async, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData : Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase * Func<Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitionBase, Microsoft.EntityFrameworkCore.Diagnostics.EventData, string> * System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Guid * Guid * bool * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandCorrelatedEventData
Public Sub New (eventDefinition As EventDefinitionBase, messageGenerator As Func(Of EventDefinitionBase, EventData, String), connection As DbConnection, context As DbContext, executeMethod As DbCommandMethod, commandId As Guid, connectionId As Guid, async 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.
- executeMethod
- DbCommandMethod
Méthode DbCommand
- 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.
- startTime
- DateTimeOffset
Heure de début de cet événement.
- commandSource
- CommandSource
Source de la commande.