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


DbCommandInterceptor.ScalarExecuted Метод

Определение

Этот метод вызывается после вызова ExecuteScalar() или одного из его асинхронных аналогов. Результат, используемый Entity Framework, можно изменить, задав .Result

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

Параметры

command
DbCommand

Выполняемая команда.

interceptionContext
DbCommandInterceptionContext<Object>

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

Реализации

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