DbCommandDispatcher.Reader(DbCommand, DbCommandInterceptionContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) and ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) to any IDbCommandInterceptor registered on DbInterception before/after making a call to ExecuteReader(CommandBehavior).
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
Parameters
- command
- DbCommand
The command on which the operation will be executed.
- interceptionContext
- DbCommandInterceptionContext
Optional information about the context of the call being made.
Returns
The result of the operation, which may have been modified by interceptors.
Remarks
Note that the result of executing the command is returned by this method. The result is not available in the interception context passed into this method since the interception context is cloned before being passed to interceptors.
Applies to
Entity Framework