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


DbCommandInterceptor.ReaderExecuted Метод

Определение

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

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

Параметры

command
DbCommand

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

interceptionContext
DbCommandInterceptionContext<DbDataReader>

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

Реализации

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