Interface IExcelRecordMap<T>
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
TThe 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
builderExcelRecordMapBuilder<T, TRow>The builder to configure.
Type Parameters
TRowThe 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.