MapFlow 1.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MapFlow --version 1.0.2
NuGet\Install-Package MapFlow -Version 1.0.2
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="MapFlow" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MapFlow" Version="1.0.2" />
<PackageReference Include="MapFlow" />
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 MapFlow --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MapFlow, 1.0.2"
#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 MapFlow@1.0.2
#: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=MapFlow&version=1.0.2
#tool nuget:?package=MapFlow&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MapFlow
Zero-reflection, zero-dependency object mapper for .NET.
Quick start
using MapFlow;
// Lambda-based (ad-hoc)
var dto = product.Map(p => new ProductDto { Id = p.Id, Name = p.Name });
// Interface-based (declarative)
var dto = Mapper.Map<Product, ProductDto>(product);
// With Source Generator (auto-map)
public partial class ProductDto : IMapFrom<Product>
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
// SG generates MapFrom automatically
}
// In-place mutation
product.Apply(p => { p.Name = request.Name; });
Features
- Zero reflection, zero dependencies, AOT compatible
- Lambda-based for ad-hoc mappings
- Interface-based (IMapFrom/IMapTo) for repeatable mappings
- Source Generator auto-generates MapFrom/MapTo for matching properties
- PagedResult built-in with mapping support
- Apply / mutation for in-place updates and chaining
- Null-safe — all entry points validate arguments
- Records, structs, classes — all supported
Learn more
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- 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.