Riok.Mapperly
4.1.0-next.2
Prefix Reserved
See the version list below for details.
dotnet add package Riok.Mapperly --version 4.1.0-next.2
NuGet\Install-Package Riok.Mapperly -Version 4.1.0-next.2
<PackageReference Include="Riok.Mapperly" Version="4.1.0-next.2" />
paket add Riok.Mapperly --version 4.1.0-next.2
#r "nuget: Riok.Mapperly, 4.1.0-next.2"
// Install Riok.Mapperly as a Cake Addin #addin nuget:?package=Riok.Mapperly&version=4.1.0-next.2&prerelease // Install Riok.Mapperly as a Cake Tool #tool nuget:?package=Riok.Mapperly&version=4.1.0-next.2&prerelease
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.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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages (16)
Showing the top 5 NuGet packages that depend on Riok.Mapperly:
Package | Downloads |
---|---|
Rocket.Surgery.LaunchPad.Mapping
Package Description |
|
Indice.Hive.Core
Package Description |
|
Fanzoo.Kernel
An opinionated framework for building scalable web applications. |
|
Eternet.AspNetCore.DocumentDb.Crud
AspNet Core DocumentDb CRUD framework using Marten for Document DB and Events Store |
|
BeamOS.Tests.Common
Package Description |
GitHub repositories (13)
Showing the top 5 popular GitHub repositories that depend on Riok.Mapperly:
Repository | Stars |
---|---|
riok/mapperly
A .NET source generator for generating object mappings. No runtime reflection.
|
|
martinothamar/Mediator
A high performance implementation of Mediator pattern in .NET using source generators.
|
|
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and imaginary food delivery microservices, built with .Net 8, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
velopack/velopack
Installer and automatic update framework for cross-platform desktop applications
|
Version | Downloads | Last updated |
---|---|---|
4.1.1 | 2,923 | 11/20/2024 |
4.1.1-next.0 | 821 | 11/5/2024 |
4.1.0 | 63,935 | 10/31/2024 |
4.1.0-next.3 | 109 | 10/29/2024 |
4.1.0-next.2 | 451 | 10/25/2024 |
4.1.0-next.1 | 571 | 10/14/2024 |
4.1.0-next.0 | 541 | 10/11/2024 |
4.0.0 | 84,031 | 10/11/2024 |
4.0.0-next.4 | 1,467 | 9/29/2024 |
4.0.0-next.3 | 11,099 | 8/13/2024 |
4.0.0-next.2 | 477 | 8/6/2024 |
4.0.0-next.1 | 3,083 | 6/30/2024 |
3.6.0 | 805,241 | 6/18/2024 |
3.6.0-next.2 | 1,632 | 6/3/2024 |
3.6.0-next.1 | 4,588 | 5/3/2024 |
3.5.1 | 395,867 | 4/23/2024 |
3.5.1-next.2 | 1,312 | 4/15/2024 |
3.5.1-next.1 | 227 | 4/9/2024 |
3.5.0 | 228,143 | 4/5/2024 |
3.5.0-next.4 | 1,097 | 3/27/2024 |
3.5.0-next.3 | 8,827 | 3/18/2024 |
3.5.0-next.2 | 13,974 | 3/11/2024 |
3.5.0-next.1 | 626 | 3/9/2024 |
3.4.0 | 358,038 | 2/23/2024 |
3.4.0-next.5 | 1,585 | 2/20/2024 |
3.4.0-next.4 | 882 | 2/16/2024 |
3.4.0-next.3 | 3,925 | 2/5/2024 |
3.4.0-next.2 | 18,155 | 1/10/2024 |
3.4.0-next.1 | 328 | 1/6/2024 |
3.3.1-next.1 | 2,808 | 12/18/2023 |
3.3.0 | 543,840 | 12/12/2023 |
3.3.0-next.6 | 1,016 | 12/6/2023 |
3.3.0-next.5 | 1,366 | 11/28/2023 |
3.3.0-next.4 | 2,307 | 11/22/2023 |
3.3.0-next.3 | 7,034 | 11/19/2023 |
3.3.0-next.2 | 3,337 | 10/26/2023 |
3.3.0-next.1 | 3,671 | 10/11/2023 |
3.2.0 | 624,859 | 9/18/2023 |
3.2.0-next.4 | 1,392 | 9/12/2023 |
3.2.0-next.3 | 461 | 9/11/2023 |
3.2.0-next.2 | 328 | 9/5/2023 |
3.2.0-next.1 | 482 | 8/29/2023 |
3.1.0 | 148,831 | 8/18/2023 |
3.1.0-next.2 | 112 | 8/18/2023 |
3.1.0-next.1 | 4,507 | 8/8/2023 |
3.0.0 | 39,608 | 8/7/2023 |
3.0.0-next.1 | 353 | 8/2/2023 |
2.9.0-next.4 | 6,568 | 7/26/2023 |
2.9.0-next.3 | 706 | 7/16/2023 |
2.9.0-next.2 | 5,062 | 6/13/2023 |
2.9.0-next.1 | 5,565 | 5/11/2023 |
2.8.0 | 535,877 | 4/27/2023 |
2.8.0-next.2 | 523 | 4/20/2023 |
2.8.0-next.1 | 17,143 | 3/23/2023 |
2.7.1-next.1 | 664 | 3/17/2023 |
2.7.0 | 169,045 | 3/13/2023 |
2.7.0-next.2 | 821 | 1/26/2023 |
2.7.0-next.1 | 614 | 1/23/2023 |
2.6.0 | 89,939 | 1/12/2023 |
2.6.0-next.4 | 115 | 1/11/2023 |
2.6.0-next.3 | 173 | 1/9/2023 |
2.6.0-next.2 | 295 | 12/14/2022 |
2.6.0-next.1 | 572 | 12/12/2022 |
2.5.0 | 82,563 | 10/12/2022 |
2.5.0-next.2 | 329 | 9/28/2022 |
2.5.0-next.1 | 231 | 9/19/2022 |
2.4.1-next.1 | 203 | 9/16/2022 |
2.4.0 | 18,656 | 9/8/2022 |
2.3.3 | 3,083 | 8/10/2022 |
2.3.2 | 908 | 8/9/2022 |
2.3.1 | 61,563 | 5/31/2022 |
2.3.0 | 2,411 | 5/16/2022 |
2.2.1 | 3,530 | 4/6/2022 |
2.2.0 | 1,251 | 3/15/2022 |
2.1.0 | 1,064 | 2/28/2022 |
2.0.0 | 1,151 | 2/21/2022 |
🚀 Features
add roslyn 4.11 as target by @latonz in #1555
🐛 Bug Fixes
handle nullable value types with MapValueAttribute and methods correct by @latonz in #1538
correct analysis of property member accessors by @latonz in #1556
simplify could not generate mapping exception syntax by @latonz in #1559
fix inconsistent handling of mixed nullable contexts by @latonz in #1558
allow multiple MapProperty attributes for the same target member by @latonz in #1560
Full Changelog: https://github.com/riok/mapperly/compare/v4.1.0-next.1...v4.1.0-next.2