Riok.Mapperly 5.0.0-next.0
Mapperly
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.ShouldBe(10);
Read the docs for any further information.
Release Channels
Mapperly is distributed through two release channels:
- Stable Channel: Production-ready releases with full support for the latest release. Install the latest stable version for production use. Subject to semantic versioning (breaking changes only in major version bumps).
- Next Channel: Preview releases with upcoming features and improvements. These versions may contain breaking changes and are not subject to semantic versioning. Use for testing and early access to new features.
Support Policy
Only the latest version released on the stable channel is fully supported. We strive to support all .NET versions that are currently supported by Microsoft.
Upgrading
Find a list of breaking changes for each major version and upgrade guides here.
Support
Need assistance with Mapperly or looking for consulting services? The riok team is available to help with:
- Enterprise support and training
- Architecture consultation
- Custom feature development and integration support
- Performance optimization and code reviews
Reach out through GitHub Discussions for questions, or contact the riok team directly for professional consulting services at hello@riok.ch. You can also support the project and get priority support through GitHub Sponsors.
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
|
6 |
|
Volo.Abp.Mapperly
Package Description
|
5 |
🚨 Breaking Changes
feat: drop .net 6 and .net 7 support by @latonz in #2081
feat: Added support for IFormatProvider in parse method by @Nysosis in #2038
fix: full nameof should only be applied if the @ optin prefix is set by @latonz in #1905
fix: Add Default MappingTypeConversion and disable explicit casts by default by @zchung in #1881
fix: preserve stack order when deep cloning by @latonz in #2082
🚀 Features
feat: drop .net 6 and .net 7 support by @latonz in #2081
feat: Added support for IFormatProvider in parse method by @Nysosis in #2038
feat: Add SnakeCase strategy to PropertyNameMappingStrategy by @Kataane in #2011
🐛 Bug Fixes
fix: Add Default MappingTypeConversion and disable explicit casts by default by @zchung in #1881
fix: preserve stack order when deep cloning by @latonz in #2082
Full Changelog: https://github.com/riok/mapperly/compare/v4.3.1...v5.0.0-next.0
.NET Standard 2.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 5.0.0-next.0 | 2 | 12/25/2025 |
| 4.3.1 | 2 | 12/23/2025 |
| 4.3.1-next.0 | 7 | 12/12/2025 |
| 4.3.0 | 5 | 12/12/2025 |
| 4.3.0-next.6 | 5 | 12/12/2025 |
| 4.3.0-next.5 | 6 | 12/12/2025 |
| 4.3.0-next.4 | 5 | 12/12/2025 |
| 4.3.0-next.3 | 5 | 12/12/2025 |
| 4.3.0-next.2 | 5 | 12/12/2025 |
| 4.3.0-next.1 | 6 | 12/12/2025 |
| 4.3.0-next.0 | 6 | 12/12/2025 |
| 4.2.1 | 6 | 12/12/2025 |
| 4.2.1-next.2 | 6 | 12/12/2025 |
| 4.2.1-next.1 | 5 | 12/12/2025 |
| 4.2.1-next.0 | 5 | 12/12/2025 |
| 4.2.0 | 5 | 12/12/2025 |
| 4.2.0-next.2 | 4 | 12/12/2025 |
| 4.2.0-next.1 | 6 | 12/12/2025 |
| 4.2.0-next.0 | 7 | 12/12/2025 |
| 4.1.1 | 6 | 12/12/2025 |
| 4.1.1-next.0 | 5 | 12/12/2025 |
| 4.1.0 | 7 | 12/12/2025 |
| 4.1.0-next.3 | 5 | 12/12/2025 |
| 4.1.0-next.2 | 3 | 12/12/2025 |
| 4.1.0-next.1 | 6 | 12/12/2025 |
| 4.1.0-next.0 | 6 | 12/12/2025 |
| 4.0.0 | 5 | 12/12/2025 |
| 4.0.0-next.4 | 5 | 12/12/2025 |
| 4.0.0-next.3 | 6 | 12/12/2025 |
| 4.0.0-next.2 | 5 | 12/12/2025 |
| 4.0.0-next.1 | 6 | 12/12/2025 |
| 3.6.0 | 5 | 12/12/2025 |
| 3.6.0-next.2 | 6 | 12/12/2025 |
| 3.6.0-next.1 | 5 | 12/12/2025 |
| 3.5.1 | 5 | 12/12/2025 |
| 3.5.1-next.2 | 6 | 12/12/2025 |
| 3.5.1-next.1 | 6 | 12/12/2025 |
| 3.5.0 | 5 | 12/12/2025 |
| 3.5.0-next.4 | 4 | 12/12/2025 |
| 3.5.0-next.3 | 5 | 12/12/2025 |
| 3.5.0-next.2 | 5 | 12/12/2025 |
| 3.5.0-next.1 | 5 | 12/12/2025 |
| 3.4.0 | 7 | 12/12/2025 |
| 3.4.0-next.5 | 6 | 12/12/2025 |
| 3.4.0-next.4 | 6 | 12/12/2025 |
| 3.4.0-next.3 | 3 | 12/12/2025 |
| 3.4.0-next.2 | 5 | 12/12/2025 |
| 3.4.0-next.1 | 7 | 12/12/2025 |
| 3.3.1-next.1 | 4 | 12/12/2025 |
| 3.3.0 | 5 | 12/12/2025 |
| 3.3.0-next.6 | 6 | 12/12/2025 |
| 3.3.0-next.5 | 6 | 12/12/2025 |
| 3.3.0-next.4 | 6 | 12/12/2025 |
| 3.3.0-next.3 | 5 | 12/12/2025 |
| 3.3.0-next.2 | 7 | 12/12/2025 |
| 3.3.0-next.1 | 6 | 12/12/2025 |
| 3.2.0 | 5 | 12/12/2025 |
| 3.2.0-next.4 | 6 | 12/12/2025 |
| 3.2.0-next.3 | 5 | 12/12/2025 |
| 3.2.0-next.2 | 5 | 12/12/2025 |
| 3.2.0-next.1 | 5 | 12/12/2025 |
| 3.1.0 | 6 | 12/12/2025 |
| 3.1.0-next.2 | 5 | 12/12/2025 |
| 3.1.0-next.1 | 6 | 12/12/2025 |
| 3.0.0 | 3 | 12/12/2025 |
| 3.0.0-next.1 | 6 | 12/12/2025 |
| 2.9.0-next.4 | 5 | 12/12/2025 |
| 2.9.0-next.3 | 5 | 12/12/2025 |
| 2.9.0-next.2 | 5 | 12/12/2025 |
| 2.9.0-next.1 | 5 | 12/12/2025 |
| 2.8.0 | 6 | 12/12/2025 |
| 2.8.0-next.2 | 6 | 12/12/2025 |
| 2.8.0-next.1 | 3 | 12/12/2025 |
| 2.7.1-next.1 | 7 | 12/11/2025 |
| 2.7.0 | 6 | 12/12/2025 |
| 2.7.0-next.2 | 5 | 12/12/2025 |
| 2.7.0-next.1 | 5 | 12/12/2025 |
| 2.6.0 | 5 | 12/12/2025 |
| 2.6.0-next.4 | 5 | 12/12/2025 |
| 2.6.0-next.3 | 5 | 12/12/2025 |
| 2.6.0-next.2 | 5 | 12/12/2025 |
| 2.6.0-next.1 | 5 | 12/12/2025 |
| 2.5.0 | 5 | 12/12/2025 |
| 2.5.0-next.2 | 5 | 12/12/2025 |
| 2.5.0-next.1 | 5 | 12/12/2025 |
| 2.4.1-next.1 | 5 | 12/12/2025 |
| 2.4.0 | 5 | 12/12/2025 |
| 2.3.3 | 5 | 12/12/2025 |
| 2.3.2 | 5 | 12/12/2025 |
| 2.3.1 | 6 | 12/12/2025 |
| 2.3.0 | 3 | 12/12/2025 |
| 2.2.1 | 7 | 12/12/2025 |
| 2.2.0 | 5 | 12/12/2025 |
| 2.1.0 | 6 | 12/12/2025 |
| 2.0.0 | 7 | 12/12/2025 |