API Reference
Class
DataReaderAsyncMappingExtensions
Asynchronous typed row projections for forward-only data readers.
Inheritance
- Object
- DataReaderAsyncMappingExtensions
Methods
RowsAsAsync``1 3 overloads
public static IAsyncEnumerable<T?> RowsAsAsync<T>(DbDataReader reader, CancellationToken cancellationToken = default) #Returns:
IAsyncEnumerable<T?>Asynchronously projects remaining rows by matching column names to writable public properties. The caller retains ownership of the reader.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- cancellationToken System.Threading.CancellationToken = default
public static IAsyncEnumerable<T?> RowsAsAsync<T>(DbDataReader reader, Action<RowMapper<T?>> configure, CancellationToken cancellationToken = default) #Returns:
IAsyncEnumerable<T?>Asynchronously projects remaining rows using explicit, AOT-safe column assignments. The caller retains ownership of the reader.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- cancellationToken System.Threading.CancellationToken = default
public static IAsyncEnumerable<T?> RowsAsAsync<T>(DbDataReader reader, Func<IDataRecord, T?> factory, CancellationToken cancellationToken = default) #Returns:
IAsyncEnumerable<T?>Asynchronously projects remaining rows with a caller-supplied factory. The caller retains ownership of the reader.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- factory System.Func<System.Data.IDataRecord, T?>
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?