CommandEndEventData 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
CommandEndEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbCommand, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, TimeSpan)
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
Construit la charge utile de l’événement.
public CommandEndEventData (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, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData : 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 * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData
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, duration As TimeSpan)
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.
- 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.
- logParameterValues
- Boolean
Indique si l’application autorise ou non la journalisation des valeurs de paramètres.
- startTime
- DateTimeOffset
Heure de début de cet événement.
- duration
- TimeSpan
Durée de cet événement.
S’applique à
CommandEndEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, TimeSpan)
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
Attention
Use the overload with CommandSource
Construit la charge utile de l’événement.
public CommandEndEventData (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, TimeSpan duration);
[System.Obsolete("Use the overload with CommandSource")]
public CommandEndEventData (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, TimeSpan duration);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData : 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 * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData
[<System.Obsolete("Use the overload with CommandSource")>]
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData : 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 * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData
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, duration As TimeSpan)
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.
- logParameterValues
- Boolean
Indique si l’application autorise ou non la journalisation des valeurs de paramètres.
- startTime
- DateTimeOffset
Heure de début de cet événement.
- duration
- TimeSpan
Durée de cet événement.
- Attributs
S’applique à
CommandEndEventData(EventDefinitionBase, Func<EventDefinitionBase, EventData,String>, DbConnection, DbCommand, DbContext, DbCommandMethod, Guid, Guid, Boolean, Boolean, DateTimeOffset, TimeSpan, CommandSource)
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
- Source:
- CommandEndEventData.cs
Construit la charge utile de l’événement.
public CommandEndEventData (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, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
new Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData : 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 * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.CommandEndEventData
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, duration As TimeSpan, 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.
- logParameterValues
- Boolean
Indique si l’application autorise ou non la journalisation des valeurs de paramètres.
- startTime
- DateTimeOffset
Heure de début de cet événement.
- duration
- TimeSpan
Durée de cet événement.
- commandSource
- CommandSource
Source de la commande.