Riok.Mapperly 4.3.0-next.0

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.

No packages depend on Riok.Mapperly.

🚀 Features feat: support unsafe accessors in generic classes and nested mappers by @latonz in #1814 feat: support roslyn 4.14 by @latonz in #1837 feat: Allow to disable null mismatch diagnostics RMG089 per member by @3sRykaert in #1804 🐛 Bug Fixes fix: nullable user implemented value type mappings in queryable projections by @latonz in #1835 Full Changelog: https://github.com/riok/mapperly/compare/v4.2.1...v4.3.0-next.0

.NET Standard 2.0

  • No dependencies.

Version Downloads Last updated
4.3.0-next.2 2 06/20/2025
4.3.0-next.1 2 06/20/2025
4.3.0-next.0 4 06/03/2025
4.2.1 207 04/28/2025
4.2.1-next.2 10 04/25/2025
4.2.1-next.1 13 04/25/2025
4.2.1-next.0 8 04/14/2025
4.2.0 10 03/31/2025
4.2.0-next.2 10 03/23/2025
4.2.0-next.1 15 02/21/2025
4.2.0-next.0 12 01/26/2025
4.1.1 19 11/23/2024
4.1.1-next.0 19 11/07/2024
4.1.0 19 10/31/2024
4.1.0-next.3 17 10/31/2024
4.1.0-next.2 21 10/26/2024
4.1.0-next.1 18 10/16/2024
4.1.0-next.0 24 10/11/2024
4.0.0 19 10/11/2024
4.0.0-next.4 17 10/02/2024
4.0.0-next.3 25 08/17/2024
4.0.0-next.2 25 08/12/2024
4.0.0-next.1 25 07/01/2024
3.6.0 2,097 06/19/2024
3.6.0-next.2 32 06/06/2024
3.6.0-next.1 28 05/03/2024
3.5.1 27 04/23/2024
3.5.1-next.2 28 04/19/2024
3.5.1-next.1 25 04/09/2024
3.5.0 27 04/05/2024
3.5.0-next.4 31 03/27/2024
3.5.0-next.3 27 03/18/2024
3.5.0-next.2 24 03/16/2024
3.5.0-next.1 27 03/10/2024
3.4.0 28 03/01/2024
3.4.0-next.5 25 02/28/2024
3.4.0-next.4 24 02/19/2024
3.4.0-next.3 28 02/13/2024
3.4.0-next.2 32 01/12/2024
3.4.0-next.1 27 01/12/2024
3.3.1-next.1 31 12/21/2023
3.3.0 1,987 12/16/2023
3.3.0-next.6 30 12/10/2023
3.3.0-next.5 28 12/06/2023
3.3.0-next.4 29 12/06/2023
3.3.0-next.3 29 12/06/2023
3.3.0-next.2 27 10/26/2023
3.3.0-next.1 24 10/22/2023
3.2.0 30 09/19/2023
3.2.0-next.4 29 09/25/2023
3.2.0-next.3 29 09/12/2023
3.2.0-next.2 30 09/23/2023
3.2.0-next.1 27 09/03/2023
3.1.0 34 08/26/2023
3.1.0-next.2 29 08/23/2023
3.1.0-next.1 30 08/16/2023
3.0.0 30 08/16/2023
3.0.0-next.1 32 08/17/2023
2.9.0-next.4 29 08/06/2023
2.9.0-next.3 32 08/10/2023
2.9.0-next.2 28 07/05/2023
2.9.0-next.1 31 07/05/2023
2.8.0 33 07/05/2023
2.8.0-next.2 31 07/06/2023
2.8.0-next.1 496 04/13/2023
2.7.1-next.1 31 07/10/2023
2.7.0 32 07/08/2023
2.7.0-next.2 29 07/07/2023
2.7.0-next.1 26 07/07/2023
2.6.0 28 07/05/2023
2.6.0-next.4 29 07/04/2023
2.6.0-next.3 27 07/08/2023
2.6.0-next.2 29 07/07/2023
2.6.0-next.1 32 07/07/2023
2.5.0 37 06/27/2023
2.5.0-next.2 28 07/09/2023
2.5.0-next.1 30 07/06/2023
2.4.1-next.1 29 07/07/2023
2.4.0 29 07/05/2023
2.3.3 32 07/11/2023
2.3.2 31 07/07/2023
2.3.1 36 07/06/2023
2.3.0 33 07/05/2023
2.2.1 37 07/06/2023
2.2.0 32 07/04/2023
2.1.0 31 07/03/2023
2.0.0 31 07/17/2023