Sdílet prostřednictvím


DatabaseLogFormatter.LogParameter<TResult> Metoda

Definice

Volá se pomocí LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) pro protokolování každého parametru. Tuto metodu lze volat z přepsané implementace LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) na parametry protokolu a/nebo ji lze přepsat, aby se změnil způsob protokolování parametrů do 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)

Parametry typu

TResult

Typ výsledků operace

Parametry

command
DbCommand

Protokolovaný příkaz.

interceptionContext
DbCommandInterceptionContext<TResult>

Kontextové informace přidružené k příkazu

parameter
DbParameter

Parametr, který se má protokolovat.

Platí pro