Sprache

DatabaseLogFormatter.LogParameter<TResult> Methode

Definition

Wird aufgerufen, um LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) jeden Parameter zu protokollieren. Diese Methode kann von einer überschriebenen Implementierung von LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) zu Protokollparametern aufgerufen werden und/oder überschrieben werden, um die Art und Weise zu ändern, in System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteActionder Parameter protokolliert werden.

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)

Typparameter

TResult

Der Typ der Ergebnisse des Vorgangs.

Parameter

command
DbCommand

Der Befehl, der protokolliert wird.

interceptionContext
DbCommandInterceptionContext<TResult>

Kontextbezogene Informationen, die dem Befehl zugeordnet sind.

parameter
DbParameter

Der zu protokollierende Parameter.

Gilt für: