Interface IAsyncDataReader
Assembly: LemonEdge.DataAccess.Core.dll
Syntax
public interface IAsyncDataReader : IDataReader, IDataRecord, IDisposable, IAsyncDisposable
Methods
CloseAsync()
Declaration
Returns
GetColumnSchemaAsync(CancellationToken)
Declaration
Task<ReadOnlyCollection<DbColumn>> GetColumnSchemaAsync(CancellationToken token = default)
Parameters
Returns
GetFieldValueAsync<T>(int, CancellationToken)
Asynchronously gets the value of the specified column as a type
Declaration
Task<T> GetFieldValueAsync<T>(int ordinal, CancellationToken token = default)
Parameters
Returns
Type Parameters
GetSchemaTableAsync(CancellationToken)
Declaration
Task<DataTable?> GetSchemaTableAsync(CancellationToken token = default)
Parameters
Returns
IsDbNullAsync(int, CancellationToken)
Gets a value that indicates whether the column contains non-existent or missing values.
Declaration
Task<bool> IsDbNullAsync(int ordinal, CancellationToken token = default)
Parameters
Returns
Type |
Description |
Task<bool> |
A flag indicating the value for the provided ordinal is null
|
NextResultAsync(CancellationToken)
Declaration
Task<bool> NextResultAsync(CancellationToken token = default)
Parameters
Returns
Type |
Description |
Task<bool> |
true if there are more rows; otherwise, false
|
ReadAsync(CancellationToken)
An asynchronous version of Read()
Declaration
Task<bool> ReadAsync(CancellationToken token = default)
Parameters
Returns
Type |
Description |
Task<bool> |
true if there are more rows; otherwise, false
|
Extension Methods