EntityCommand.ExecuteDbDataReaderAsync Method

Definition

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