DbCommandDispatcher.Reader(DbCommand, DbCommandInterceptionContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public virtual System.Data.Common.DbDataReader Reader(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext);
abstract member Reader : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> System.Data.Common.DbDataReader
override this.Reader : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext -> System.Data.Common.DbDataReader
Public Overridable Function Reader (command As DbCommand, interceptionContext As DbCommandInterceptionContext) As DbDataReader
参数
- command
- DbCommand
将对其执行操作的命令。
- interceptionContext
- DbCommandInterceptionContext
有关所发出调用上下文的可选信息。
返回
操作的结果,可能已被拦截器修改。
注解
请注意,执行命令的结果由此方法返回。 结果在传入此方法的拦截上下文中不可用,因为截获上下文是在传递给侦听器之前克隆的。