ExecuteReaderAsync Method
Definition
ExecuteReaderAsync(DataStatement, CancellationToken)
Asynchronously executes the command statement and returns a DbDataReader.
public Task<DbDataReader> ExecuteReaderAsync(DataStatement statement, CancellationToken ct = default)
Parameters
statementDataStatementThe command statement to execute.
ctCancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DbDataReader>
A task that represents the asynchronous operation. The task result contains an instance of DbDataReader.