Class DataReaderAsync
public class DataReaderAsync : IDisposable
- Inheritance
-
DataReaderAsync
- Implements
- Extension Methods
Constructors
DataReaderAsync(CommandInfo, DataReaderWrapper)
public DataReaderAsync(CommandInfo commandInfo, DataReaderWrapper dataReader)
Parameters
commandInfo
CommandInfodataReader
DataReaderWrapper
Properties
CommandInfo
public CommandInfo? CommandInfo { get; }
Property Value
Reader
public DbDataReader? Reader { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
DisposeAsync()
public Task DisposeAsync()
Returns
ExecuteForEachAsync<T>()
public Task<T> ExecuteForEachAsync<T>()
Returns
- Task<T>
Type Parameters
T
ExecuteForEachAsync<T>(CancellationToken)
public Task<T> ExecuteForEachAsync<T>(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
- Task<T>
Type Parameters
T
QueryForEachAsync<T>(Action<T>)
public Task QueryForEachAsync<T>(Action<T> action)
Parameters
action
Action<T>
Returns
Type Parameters
T
QueryForEachAsync<T>(Action<T>, CancellationToken)
public Task QueryForEachAsync<T>(Action<T> action, CancellationToken cancellationToken)
Parameters
action
Action<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
QueryForEachAsync<T>(Func<DbDataReader, T>, Action<T>)
public Task QueryForEachAsync<T>(Func<DbDataReader, T> objectReader, Action<T> action)
Parameters
objectReader
Func<DbDataReader, T>action
Action<T>
Returns
Type Parameters
T
QueryForEachAsync<T>(Func<DbDataReader, T>, Action<T>, CancellationToken)
public Task QueryForEachAsync<T>(Func<DbDataReader, T> objectReader, Action<T> action, CancellationToken cancellationToken)
Parameters
objectReader
Func<DbDataReader, T>action
Action<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
QueryForEachAsync<T>(T, Action<T>)
public Task QueryForEachAsync<T>(T template, Action<T> action)
Parameters
template
Taction
Action<T>
Returns
Type Parameters
T
QueryForEachAsync<T>(T, Action<T>, CancellationToken)
public Task QueryForEachAsync<T>(T template, Action<T> action, CancellationToken cancellationToken)
Parameters
template
Taction
Action<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
QueryToArrayAsync<T>()
public Task<T[]> QueryToArrayAsync<T>()
Returns
- Task<T[]>
Type Parameters
T
QueryToArrayAsync<T>(Func<DbDataReader, T>)
public Task<T[]> QueryToArrayAsync<T>(Func<DbDataReader, T> objectReader)
Parameters
objectReader
Func<DbDataReader, T>
Returns
- Task<T[]>
Type Parameters
T
QueryToArrayAsync<T>(Func<DbDataReader, T>, CancellationToken)
public Task<T[]> QueryToArrayAsync<T>(Func<DbDataReader, T> objectReader, CancellationToken cancellationToken)
Parameters
objectReader
Func<DbDataReader, T>cancellationToken
CancellationToken
Returns
- Task<T[]>
Type Parameters
T
QueryToArrayAsync<T>(CancellationToken)
public Task<T[]> QueryToArrayAsync<T>(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
- Task<T[]>
Type Parameters
T
QueryToArrayAsync<T>(T)
public Task<T[]> QueryToArrayAsync<T>(T template)
Parameters
template
T
Returns
- Task<T[]>
Type Parameters
T
QueryToArrayAsync<T>(T, CancellationToken)
public Task<T[]> QueryToArrayAsync<T>(T template, CancellationToken cancellationToken)
Parameters
template
TcancellationToken
CancellationToken
Returns
- Task<T[]>
Type Parameters
T
QueryToListAsync<T>()
public Task<List<T>> QueryToListAsync<T>()
Returns
Type Parameters
T
QueryToListAsync<T>(Func<DbDataReader, T>)
public Task<List<T>> QueryToListAsync<T>(Func<DbDataReader, T> objectReader)
Parameters
objectReader
Func<DbDataReader, T>
Returns
Type Parameters
T
QueryToListAsync<T>(Func<DbDataReader, T>, CancellationToken)
public Task<List<T>> QueryToListAsync<T>(Func<DbDataReader, T> objectReader, CancellationToken cancellationToken)
Parameters
objectReader
Func<DbDataReader, T>cancellationToken
CancellationToken
Returns
Type Parameters
T
QueryToListAsync<T>(CancellationToken)
public Task<List<T>> QueryToListAsync<T>(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
Type Parameters
T
QueryToListAsync<T>(T)
public Task<List<T>> QueryToListAsync<T>(T template)
Parameters
template
T
Returns
Type Parameters
T
QueryToListAsync<T>(T, CancellationToken)
public Task<List<T>> QueryToListAsync<T>(T template, CancellationToken cancellationToken)
Parameters
template
TcancellationToken
CancellationToken
Returns
Type Parameters
T