DatabaseLogFormatter.LogParameter<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é par LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) pour journaliser chaque paramètre. Cette méthode peut être appelée à partir d’une implémentation substituée de à des paramètres de LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) journalisation, et/ou peut être remplacée pour modifier la façon dont les paramètres sont consignés dans System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction.
public virtual void LogParameter<TResult> (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext, System.Data.Common.DbParameter parameter);
abstract member LogParameter : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> * System.Data.Common.DbParameter -> unit
override this.LogParameter : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> * System.Data.Common.DbParameter -> unit
Public Overridable Sub LogParameter(Of TResult) (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of TResult), parameter As DbParameter)
Paramètres de type
- TResult
Type des résultats de l’opération.
Paramètres
- command
- DbCommand
Commande en cours de journalisation.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Informations contextuelles associées à la commande.
- parameter
- DbParameter
Paramètre à consigner.