Udostępnij za pośrednictwem


DatabaseLogFormatter.LogParameter<TResult> Metoda

Definicja

Wywoływane przez w LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) celu rejestrowania każdego parametru. Tę metodę można wywołać z zastępowanej implementacji LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) do parametrów dziennika i/lub można zastąpić, aby zmienić sposób rejestrowania parametrów na 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 wyników operacji.

Parametry

command
DbCommand

Rejestrowane polecenie.

interceptionContext
DbCommandInterceptionContext<TResult>

Informacje kontekstowe skojarzone z poleceniem .

parameter
DbParameter

Parametr do rejestrowania.

Dotyczy