EntityCommand.ExecuteDbDataReaderAsync 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.
Asynchronously executes the command and returns a data reader for reading the results
[System.Diagnostics.DebuggerStepThrough]
protected override System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ExecuteDbDataReaderAsync (System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken);
override this.ExecuteDbDataReaderAsync : System.Data.CommandBehavior * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>
Parameters
- behavior
- CommandBehavior
The behavior to use when executing the command
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests
Returns
A task that represents the asynchronous operation. The task result contains a DbDataReader object.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework