Поделиться через


DatabaseLogFormatter.LogParameter<TResult> Метод

Определение

Вызывается для LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) ведения журнала каждого параметра. Этот метод можно вызвать из переопределенной реализации LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) в параметры журнала и (или) можно переопределить, чтобы изменить способ ведения журнала параметров в 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)

Параметры типа

TResult

Тип результатов операции.

Параметры

command
DbCommand

Команда, записываемая в журнал.

interceptionContext
DbCommandInterceptionContext<TResult>

Контекстная информация, связанная с командой.

parameter
DbParameter

Параметр для ведения журнала.

Применяется к