SqlHelper.ExecuteReaderAsync method (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Services
Executes the query asynchronously.
public static Task<IDataReader> ExecuteReaderAsync(this SqlQuery query, IDbConnection connection,
ILogger logger = null, CancellationToken cancellationToken = default(CancellationToken))
| parameter | description |
|---|---|
| query | The query. |
| connection | The connection. |
| logger | The logger. |
| cancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains a data reader with the results.
See Also
SqlHelper.ExecuteReaderAsync method (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Services
Executes the command asynchronously returning a data reader.
public static Task<IDataReader> ExecuteReaderAsync(IDbConnection connection, string commandText,
IDictionary<string, object> param, ILogger logger = null,
CancellationToken cancellationToken = default(CancellationToken))
| parameter | description |
|---|---|
| connection | The connection. |
| commandText | The command text. |
| param | The parameters. |
| logger | The logger. |
| cancellationToken | The cancellation token. |
Return Value
A task that represents the asynchronous operation. The task result contains a data reader with the results.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | connection is null. |
See Also
- class SqlHelper