DbCommandInterceptor.ReaderExecuted 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用或其异步对应项之一后调用 ExecuteReader(CommandBehavior) 此方法。 实体框架使用的结果可以通过设置 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>
与调用关联的上下文信息。