# ParallelRowMappingExtensions

Ordered parallel typed projections over forward-only data readers.

Class 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ParallelRowMapping.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ParallelRowMapping.cs#L119)

**Modifiers**

static

Ordered parallel typed projections over forward-only data readers.

## Inheritance

- object
- ParallelRowMappingExtensions

Filter members 

Show inherited

## Methods

RowsAsParallel``1 3 overloads

`public static IEnumerable<T?> RowsAsParallel<T>(DbDataReader reader, ParallelRowMappingOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-rowsasparallel-data-common-dbdatareader-officeimo-data-parallelrowmappingoptions-threading-cancellationtoken)

[ParallelRowMapping.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ParallelRowMapping.cs#L119)

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)` [#](#method-rowsasparallel-data-common-dbdatareader-action-officeimo-data-rowmapper-officeimo-data-parallelrowmappingoptions-threading-cancellationtoken)

[ParallelRowMapping.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ParallelRowMapping.cs#L136)

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)` [#](#method-rowsasparallel-data-common-dbdatareader-func-system-data-idatarecord-officeimo-data-parallelrowmappingoptions-threading-cancellationtoken)

[ParallelRowMapping.cs:158](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/ParallelRowMapping.cs#L158)

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?>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:DA92345C20C86F47D9C9E996F955A34EAFCF545ABCE6863E67351E7F947F3600 -->
