OfficeIMO.Data.Generators
3.4.0
Prefix Reserved
dotnet add package OfficeIMO.Data.Generators --version 3.4.0
NuGet\Install-Package OfficeIMO.Data.Generators -Version 3.4.0
<PackageReference Include="OfficeIMO.Data.Generators" Version="3.4.0" />
<PackageVersion Include="OfficeIMO.Data.Generators" Version="3.4.0" />
<PackageReference Include="OfficeIMO.Data.Generators" />
paket add OfficeIMO.Data.Generators --version 3.4.0
#r "nuget: OfficeIMO.Data.Generators, 3.4.0"
#:package OfficeIMO.Data.Generators@3.4.0
#addin nuget:?package=OfficeIMO.Data.Generators&version=3.4.0
#tool nuget:?package=OfficeIMO.Data.Generators&version=3.4.0
OfficeIMO.Data.Generators
OfficeIMO.Data.Generators creates allocation-light, reflection-free configuration for
OfficeIMO.Data.RowMapper<T>.
Add the generator beside the OfficeIMO package that supplies the reader:
dotnet add package OfficeIMO.CSV
dotnet add package OfficeIMO.Data.Generators
using OfficeIMO.Data;
[GenerateRowMapper]
public sealed class InvoiceRow {
[DataColumn("Invoice Id", "Id")]
public int InvoiceId { get; set; }
public decimal Total { get; set; }
}
IEnumerable<InvoiceRow> rows = reader.RowsAs<InvoiceRow>(InvoiceRowRowMapping.Configure);
The generated mapper is shared by Excel, CSV, and any other DbDataReader. No runtime
reflection or expression compilation is required. The annotated model must be a concrete,
top-level, non-generic class or struct with at least one writable public property; classes also
need a public parameterless constructor. Writable inherited properties are included, and the
most-derived declaration wins when a property is hidden. Ref-like, abstract, nested, generic,
and file-local shapes produce build diagnostics instead of a runtime fallback.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.