Interface IAsyncDbCommand
An asynchronous version of IDbCommand
Inherited Members
Namespace: LemonEdge.DataAccess.Core.Commands
Assembly: LemonEdge.DataAccess.Core.dll
Syntax
public interface IAsyncDbCommand : IDbCommand, IDisposable, IAsyncDisposable
Methods
CreateParameter(bool)
Creates a IDbDataParameter
Declaration
IDbDataParameter CreateParameter(bool isNullable = false)
Parameters
Type | Name | Description |
---|---|---|
bool | isNullable |
Returns
Type | Description |
---|---|
IDbDataParameter |
ExecuteNonQueryAsync(CancellationToken)
An asynchronous version of ExecuteNonQuery()
Declaration
Task<int> ExecuteNonQueryAsync(CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token |
Returns
Type | Description |
---|---|
Task<int> |
ExecuteReaderAsync(CommandBehavior, CancellationToken)
An asynchronous version of ExecuteReader(CommandBehavior), which sends the CommandText to the Connection, and builds a IAsyncDataReader
Declaration
Task<IAsyncDataReader> ExecuteReaderAsync(CommandBehavior commandBehavior, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CommandBehavior | commandBehavior | |
CancellationToken | token |
Returns
Type | Description |
---|---|
Task<IAsyncDataReader> |
ExecuteReaderAsync(CancellationToken)
An asynchronous version of ExecuteReader(), which sends the CommandText to the Connection and builds a IAsyncDataReader
Declaration
Task<IAsyncDataReader> ExecuteReaderAsync(CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token |
Returns
Type | Description |
---|---|
Task<IAsyncDataReader> |
ExecuteScalarAsync(CancellationToken)
An asynchronous version of ExecuteScalar()
Declaration
Task<object> ExecuteScalarAsync(CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token |
Returns
Type | Description |
---|---|
Task<object> |
ExecuteScalarAsync<T>(CancellationToken)
An asynchronous generic version of ExecuteScalar()
Declaration
Task<T> ExecuteScalarAsync<T>(CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |