# RowMapper<T>

Defines explicit, AOT-friendly column assignments for a typed row.

Class 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RowMapping.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L94)

**Modifiers**

sealed

Defines explicit, AOT-friendly column assignments for a typed row.

## Inheritance

- object
- RowMapper<T>

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Method [RowMapper<T>.FromColumns``1](/api/core/officeimo-data-rowmapper/#method-fromcolumns-collections-generic-ireadonlylist-system-string-func)
- Method [RowMapper<T>.FromColumn``1](/api/core/officeimo-data-rowmapper/#method-fromcolumn-string-func)

### Accepted by parameters 3

- Method [DataReaderAsyncMappingExtensions.RowsAsAsync``1](/api/core/officeimo-data-datareaderasyncmappingextensions/#method-rowsasasync-data-common-dbdatareader-action-officeimo-data-rowmapper-threading-cancellationtoken) parameter `configure`
- Method [DataReaderMappingExtensions.RowsAs``1](/api/core/officeimo-data-datareadermappingextensions/#method-rowsas-data-common-dbdatareader-action-officeimo-data-rowmapper) parameter `configure`
- Method [ParallelRowMappingExtensions.RowsAsParallel``1](/api/core/officeimo-data-parallelrowmappingextensions/#method-rowsasparallel-data-common-dbdatareader-action-officeimo-data-rowmapper-officeimo-data-parallelrowmappingoptions-threading-cancellationtoken) parameter `configure`

## Type Parameters

**T**

Filter members 

Show inherited

## Constructors

`public RowMapper<T>()` [#](#constructor-ctor)

[RowMapping.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L94)

## Methods

FromColumns``1 2 overloads

`public RowMapper<T?> FromColumns<TValue>(IReadOnlyList<string> columnNames, Func<T?, TValue?, T?> assign)` [#](#method-fromcolumns-collections-generic-ireadonlylist-system-string-func)

[RowMapping.cs:114](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L114)

Binds the first matching column name or alias to an assignment delegate.

Type Parameters

**TValue**

Parameters

**columnNames System.Collections.Generic.IReadOnlyList<string> required**

**assign System.Func<T?, TValue?, T?> required**

Returns

`RowMapper<T?>`

`public RowMapper<T?> FromColumns<TValue>(IReadOnlyList<string> columnNames, Func<T?, TValue?, T?> assign, RowMappingColumnOptions? options)` [#](#method-fromcolumns-collections-generic-ireadonlylist-system-string-func-officeimo-data-rowmappingcolumnoptions)

[RowMapping.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L122)

Binds the first matching alias with per-column conversion or missing-column controls.

Type Parameters

**TValue**

Parameters

**columnNames System.Collections.Generic.IReadOnlyList<string> required**

**assign System.Func<T?, TValue?, T?> required**

**options OfficeIMO.Data.RowMappingColumnOptions? required**

Returns

`RowMapper<T?>`

FromColumn``1 2 overloads

`public RowMapper<T?> FromColumn<TValue>(string columnName, Func<T?, TValue?, T?> assign)` [#](#method-fromcolumn-string-func)

[RowMapping.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L98)

Binds a named column to an assignment delegate.

Type Parameters

**TValue**

Parameters

**columnName string required**

**assign System.Func<T?, TValue?, T?> required**

Returns

`RowMapper<T?>`

`public RowMapper<T?> FromColumn<TValue>(string columnName, Func<T?, TValue?, T?> assign, RowMappingColumnOptions? options)` [#](#method-fromcolumn-string-func-officeimo-data-rowmappingcolumnoptions)

[RowMapping.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Data/RowMapping.cs#L103)

Binds a named column with per-column conversion or missing-column controls.

Type Parameters

**TValue**

Parameters

**columnName string required**

**assign System.Func<T?, TValue?, T?> required**

**options OfficeIMO.Data.RowMappingColumnOptions? required**

Returns

`RowMapper<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:534838C1B89BBD9CBB45357FAD3C0D597C012C48AB12606513D91DACFF9C40D9 -->
