EntityCommand.ExecuteDbDataReaderAsync Method (CommandBehavior, CancellationToken)
Asynchronously executes the command and returns a data reader for reading the results
Assembly: EntityFramework (in EntityFramework.dll)
[DebuggerStepThroughAttribute] protected override Task<DbDataReader> ExecuteDbDataReaderAsync( CommandBehavior behavior, CancellationToken cancellationToken )
Parameters
- behavior
-
Type:
System.Data.CommandBehavior
The behavior to use when executing the command
- cancellationToken
-
Type:
System.Threading.CancellationToken
The token to monitor for cancellation requests
Return Value
Type: System.Threading.Tasks.Task<DbDataReader>A task that represents the asynchronous operation. The task result contains a DbDataReader object.