Class
ParallelRowMappingExtensions
OfficeIMO.Data
Ordered parallel typed projections over forward-only data readers.
Inheritance
- object
- ParallelRowMappingExtensions
Methods
RowsAsParallel``1 3 overloads
public static IEnumerable<T?> RowsAsParallel<T>(DbDataReader reader, ParallelRowMappingOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches by matching columns to writable public properties. Only the calling thread reads the source reader; worker tasks receive independent row snapshots. Results retain source order.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- options OfficeIMO.Data.ParallelRowMappingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>public static IEnumerable<T?> RowsAsParallel<T>(DbDataReader reader, Action<RowMapper<T?>> configure, ParallelRowMappingOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches using explicit, AOT-friendly column assignments. Results retain source order.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- configure System.Action<OfficeIMO.Data.RowMapper<T?>>
- options OfficeIMO.Data.ParallelRowMappingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>public static IEnumerable<T?> RowsAsParallel<T>(DbDataReader reader, Func<IDataRecord, T?> factory, ParallelRowMappingOptions? options = null, CancellationToken cancellationToken = default) #Projects rows in bounded parallel batches with a caller-supplied factory. Results retain source order.
Type Parameters
- T
Parameters
- reader System.Data.Common.DbDataReader
- factory System.Func<System.Data.IDataRecord, T?>
- options OfficeIMO.Data.ParallelRowMappingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
IEnumerable<T?>