Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ParallelRowMappingExtensions

OfficeIMO.Data

Namespace
OfficeIMO.Data
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
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) #

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 required
options OfficeIMO.Data.ParallelRowMappingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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 required
configure System.Action<OfficeIMO.Data.RowMapper<T?>> required
options OfficeIMO.Data.ParallelRowMappingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

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 required
factory System.Func<System.Data.IDataRecord, T?> required
options OfficeIMO.Data.ParallelRowMappingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IEnumerable<T?>