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


DatabaseLogFormatter.LogResult<TResult> Метод

Определение

Вызывается для регистрации результата выполнения команды. Переопределите этот метод, чтобы изменить способ ведения журнала результатов в System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction.

public virtual void LogResult<TResult> (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member LogResult : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.LogResult : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub LogResult(Of TResult) (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of TResult))

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

TResult

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

Параметры

command
DbCommand

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

interceptionContext
DbCommandInterceptionContext<TResult>

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

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