Table of Contents

Interface IExcelRecordMap<T>

Namespace
ExcelReader.Core.Writer
Assembly
ExcelReader.Core.dll

Implemented by the source generator (feature A) — or by hand, before the generator runs — on the record type itself, which must be partial. Generated in the same partial as IExcelRowMap<T>, since both maps derive from the same property list and attributes.

public interface IExcelRecordMap<T> where T : allows ref struct

Type Parameters

T

The record type this map configures.

Methods

ConfigureExcelRecordMap<TRow>(ExcelRecordMapBuilder<T, TRow>)

Configures builder with one column per mapped property.

public static abstract void ConfigureExcelRecordMap<TRow>(ExcelRecordMapBuilder<T, TRow> builder) where TRow : IRowWriter

Parameters

builder ExcelRecordMapBuilder<T, TRow>

The builder to configure.

Type Parameters

TRow

The concrete row writer the columns write through; generic so each column action binds to that sealed class instead of IRowWriter (see ExcelRecordMapBuilder<T, TRow>). An implementation's body is identical for every TRow — write it once as a generic method.