Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

ParallelRowMappingExtensions

Namespace OfficeIMO.Data
Assembly OfficeIMO.Core
Modifiers static

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 requiredposition: 0
options OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 1
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
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 requiredposition: 0
configure System.Action{OfficeIMO.Data.RowMapper{``0}} requiredposition: 1
options OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3
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 requiredposition: 0
factory System.Func{System.Data.IDataRecord,``0} requiredposition: 1
options OfficeIMO.Data.ParallelRowMappingOptions = null optionalposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3