API Reference
Class
ParallelRowMappingExtensions
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) #Returns:
IEnumerable<T>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
public static IEnumerable<T> RowsAsParallel<T>(DbDataReader reader, Action<RowMapper<T>> configure, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = default) #Returns:
IEnumerable<T>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{``0}}
- options OfficeIMO.Data.ParallelRowMappingOptions = null
- cancellationToken System.Threading.CancellationToken = default
public static IEnumerable<T> RowsAsParallel<T>(DbDataReader reader, Func<IDataRecord, T> factory, ParallelRowMappingOptions options = null, CancellationToken cancellationToken = default) #Returns:
IEnumerable<T>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,``0}
- options OfficeIMO.Data.ParallelRowMappingOptions = null
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object