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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Data.Generators" Version="3.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Data.Generators" Version="3.4.0" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Data.Generators" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Data.Generators --version 3.4.0
                    
#r "nuget: OfficeIMO.Data.Generators, 3.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Data.Generators@3.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Data.Generators&version=3.4.0
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Data.Generators&version=3.4.0
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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.

Version Downloads Last Updated
3.4.0 0 9/6/2026
3.3.0 54 9/2/2026