Riok.Mapperly 4.0.0-next.1

Mapperly

Nuget Nuget Preview License Downloads GitHub Sponsors GitHub

Mapperly is a .NET source generator for generating object mappings.

Because Mapperly creates the mapping code at build time, there is minimal overhead at runtime. Even better, the generated code is perfectly readable, allowing you to verify the generated mapping code easily.

Documentation

The documentation is available here.

Quickstart

Installation

Add the NuGet Package to your project:

dotnet add package Riok.Mapperly

Create your first mapper

Create a mapper declaration as a partial class and apply the Riok.Mapperly.Abstractions.MapperAttribute attribute. Mapperly generates mapping method implementations for the defined mapping methods in the mapper.

// Mapper declaration
[Mapper]
public partial class CarMapper
{
    public partial CarDto CarToCarDto(Car car);
}

// Mapper usage
var mapper = new CarMapper();
var car = new Car { NumberOfSeats = 10, ... };
var dto = mapper.CarToCarDto(car);
dto.NumberOfSeats.Should().Be(10);

Read the docs for any further information.

Upgrading

Find a list of breaking changes for each major version and upgrade guides here.

How To Contribute

We would love for you to contribute to Mapperly and help make it even better than it is today! Find information on how to contribute in the docs.

License

Mapperly is Apache 2.0 licensed.

Showing the top 20 packages that depend on Riok.Mapperly.

Packages Downloads
Volo.Abp.Mapperly
Package Description
1

🚨 Breaking Changes ignore indexed properties by @latonz in #1351 add enum underlying type conversion by @latonz in #1352 strict mappings by default by @latonz in #1353 support mapping properties in foreach mappings by @latonz in #1364 🚀 Features Refactor member matching and member mapping building process by @latonz in #1334 Introduce MapValueAttribute to map constant values and method provided values by @latonz in #1335 🐛 Bug Fixes adjust diagnostic messages to be correct when applied with MapValue by @latonz in #1332 allow same-name members with different casings by @latonz in #1350 Replace invalid MapPropertyAttribute constructors with valid versions by @latonz in #1354 Full Changelog: https://github.com/riok/mapperly/compare/v3.6.0...v4.0.0-next.0 Breaking changes migration guide: https://next.mapperly.riok.app/docs/breaking-changes/4-0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
4.3.0-next.5 1 2025/10/9
4.3.0-next.4 1 2025/10/4
4.3.0-next.3 1 2025/10/5
4.3.0-next.2 1 2025/10/5
4.3.0-next.1 1 2025/10/5
4.3.0-next.0 1 2025/10/5
4.2.1 1 2025/10/5
4.2.1-next.2 1 2025/10/5
4.2.1-next.1 1 2025/10/5
4.2.1-next.0 1 2025/10/5
4.2.0 1 2025/10/5
4.2.0-next.2 1 2025/10/5
4.2.0-next.1 1 2025/10/5
4.2.0-next.0 1 2025/10/5
4.1.1 1 2025/10/5
4.1.1-next.0 1 2025/10/5
4.1.0 1 2025/10/5
4.1.0-next.3 1 2025/10/5
4.1.0-next.2 1 2025/10/6
4.1.0-next.1 2 2025/10/5
4.1.0-next.0 1 2025/10/5
4.0.0 1 2025/10/5
4.0.0-next.4 1 2025/10/5
4.0.0-next.3 1 2025/10/5
4.0.0-next.2 1 2025/10/5
4.0.0-next.1 1 2025/10/5
3.6.0 1 2025/10/5
3.6.0-next.2 1 2025/10/5
3.6.0-next.1 1 2025/10/5
3.5.1 1 2025/10/5
3.5.1-next.2 1 2025/10/5
3.5.1-next.1 1 2025/10/5
3.5.0 1 2025/10/5
3.5.0-next.4 1 2025/10/5
3.5.0-next.3 1 2025/10/5
3.5.0-next.2 1 2025/10/5
3.5.0-next.1 1 2025/10/5
3.4.0 1 2025/10/5
3.4.0-next.5 1 2025/10/5
3.4.0-next.4 2 2025/10/5
3.4.0-next.3 1 2025/10/5
3.4.0-next.2 1 2025/10/5
3.4.0-next.1 1 2025/10/5
3.3.1-next.1 1 2025/10/5
3.3.0 1 2025/10/5
3.3.0-next.6 1 2025/10/5
3.3.0-next.5 1 2025/10/5
3.3.0-next.4 1 2025/10/5
3.3.0-next.3 1 2025/10/5
3.3.0-next.2 1 2025/10/5
3.3.0-next.1 1 2025/10/5
3.2.0 1 2025/10/5
3.2.0-next.4 1 2025/10/5
3.2.0-next.3 1 2025/10/5
3.2.0-next.2 1 2025/10/5
3.2.0-next.1 1 2025/10/5
3.1.0 1 2025/10/5
3.1.0-next.2 1 2025/10/5
3.1.0-next.1 1 2025/10/5
3.0.0 1 2025/10/5
3.0.0-next.1 1 2025/10/5
2.9.0-next.4 1 2025/10/5
2.9.0-next.3 1 2025/10/5
2.9.0-next.2 1 2025/10/5
2.9.0-next.1 1 2025/10/5
2.8.0 1 2025/10/5
2.8.0-next.2 1 2025/10/5
2.8.0-next.1 1 2025/10/5
2.7.1-next.1 1 2025/10/5
2.7.0 1 2025/10/5
2.7.0-next.2 1 2025/10/5
2.7.0-next.1 1 2025/10/5
2.6.0 1 2025/10/5
2.6.0-next.4 2 2025/10/5
2.6.0-next.3 1 2025/10/5
2.6.0-next.2 1 2025/10/5
2.6.0-next.1 1 2025/10/5
2.5.0 1 2025/10/5
2.5.0-next.2 1 2025/10/5
2.5.0-next.1 1 2025/10/5
2.4.1-next.1 1 2025/10/5
2.4.0 1 2025/10/5
2.3.3 1 2025/10/5
2.3.2 1 2025/10/5
2.3.1 1 2025/10/5
2.3.0 1 2025/10/5
2.2.1 1 2025/10/5
2.2.0 1 2025/10/5
2.1.0 1 2025/10/6
2.0.0 1 2025/10/5