DatabaseLogFormatter.LogCommand<TResult> Méthode
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.
Appelé pour journaliser une commande sur le point d’être exécutée. Remplacez cette méthode pour modifier la façon dont la commande est journalisée sur System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction.
public virtual void LogCommand<TResult> (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member LogCommand : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.LogCommand : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub LogCommand(Of TResult) (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of TResult))
Paramètres de type
- TResult
Type des résultats de l’opération.
Paramètres
- command
- DbCommand
Commande à journaliser.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Informations contextuelles associées à la commande.