Riok.Mapperly
3.0.0-next.1
Prefix Reserved
See the version list below for details.
dotnet add package Riok.Mapperly --version 3.0.0-next.1
NuGet\Install-Package Riok.Mapperly -Version 3.0.0-next.1
<PackageReference Include="Riok.Mapperly" Version="3.0.0-next.1" />
<PackageVersion Include="Riok.Mapperly" Version="3.0.0-next.1" />
<PackageReference Include="Riok.Mapperly" />
paket add Riok.Mapperly --version 3.0.0-next.1
#r "nuget: Riok.Mapperly, 3.0.0-next.1"
#addin nuget:?package=Riok.Mapperly&version=3.0.0-next.1&prerelease
#tool nuget:?package=Riok.Mapperly&version=3.0.0-next.1&prerelease
Mapperly
Mapperly is a .NET source generator for generating object mappings. Inspired by MapStruct.
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.
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. 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. |
.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 (21)
Showing the top 5 NuGet packages that depend on Riok.Mapperly:
Package | Downloads |
---|---|
Rocket.Surgery.LaunchPad.Mapping
Package Description |
|
AssemblyAI
The AssemblyAI C# .NET SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, audio intelligence models, as well as the latest LeMUR models. |
|
Indice.Hive.Core
Package Description |
|
Fanzoo.Kernel
An opinionated framework for building scalable web applications. |
|
TossPlatform.Common
TossPlatform Common for SDK |
GitHub repositories (18)
Showing the top 18 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.
|
|
lookup-foundation/RevitLookup
Interactive Revit RFA and RVT project database exploration tool to view and navigate BIM element parameters, properties and relationships.
|
|
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
|
|
ldqk/Masuit.MyBlogs
基于C#/.NET8的 masuit.org个人博客站项目源码,https://masuit.org ,供参考、学习、引用、非商业性质的部署。
|
|
neozhu/CleanArchitectureWithBlazorServer
This is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
|
|
velopack/velopack
Installer and automatic update framework for cross-platform desktop applications
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and imaginary food delivery microservices, built with .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
yanpitangui/dotnet-api-boilerplate
A Dotnet 9.0 WebApi template project. MediatR, Swagger, Mapper, Serilog and more implemented.
|
|
nkdAgility/azure-devops-migration-tools
Azure DevOps Migration Tools allow you to migrate Teams, Backlogs, Work Items, Tasks, Test Cases, and Plans & Suits from one Project to another in Azure DevOps / TFS both within the same Organisation, and between Organisations.
|
|
mehdihadeli/vertical-slice-api-template
🍰 An asp.net core template based on .Net 9, Vertical Slice Architecture, CQRS, Minimal APIs, OpenTelemetry, API Versioning and OpenAPI.
|
|
higty/higlabo
HigLabo library provide 1.AI client library(OpenAI, Anthoripic, Groq) 2.Object Mapper(fastest in the world) 3.DbSharp(DAL generator) 4.Other.(Mail, Ftp, Utility...etc)
|
|
josephnhtam/live-streaming-server-net
A .NET implementation of RTMP live streaming server, supporting HTTP-FLV, WebSocket-FLV, HLS, Kubernetes, cloud storage services integration and more.
|
|
Azure/iotedge-lorawan-starterkit
Sample implementation of LoRaWAN components to connect LoRaWAN antenna gateway running IoT Edge directly with Azure IoT.
|
|
svrooij/WingetIntune
Package any app from Winget to Intune - WinTuner
|
|
westonwalker/BlazorMinimalAPI
|
|
SapiensAnatis/Dawnshard
Server emulator for Dragalia Lost
|
|
asesidaa/EXVS2-POC
|
Version | Downloads | Last updated |
---|---|---|
4.2.1-next.0 | 188 | 4/8/2025 |
4.2.0 | 58,055 | 3/26/2025 |
4.2.0-next.2 | 529 | 3/18/2025 |
4.2.0-next.1 | 2,478 | 2/17/2025 |
4.2.0-next.0 | 14,199 | 1/20/2025 |
4.1.1 | 893,818 | 11/20/2024 |
4.1.1-next.0 | 14,144 | 11/5/2024 |
4.1.0 | 349,425 | 10/31/2024 |
4.1.0-next.3 | 155 | 10/29/2024 |
4.1.0-next.2 | 987 | 10/25/2024 |
4.1.0-next.1 | 820 | 10/14/2024 |
4.1.0-next.0 | 3,197 | 10/11/2024 |
4.0.0 | 199,230 | 10/11/2024 |
4.0.0-next.4 | 2,383 | 9/29/2024 |
4.0.0-next.3 | 21,231 | 8/13/2024 |
4.0.0-next.2 | 503 | 8/6/2024 |
4.0.0-next.1 | 9,241 | 6/30/2024 |
3.6.0 | 1,364,160 | 6/18/2024 |
3.6.0-next.2 | 2,358 | 6/3/2024 |
3.6.0-next.1 | 6,978 | 5/3/2024 |
3.5.1 | 508,544 | 4/23/2024 |
3.5.1-next.2 | 2,527 | 4/15/2024 |
3.5.1-next.1 | 238 | 4/9/2024 |
3.5.0 | 339,255 | 4/5/2024 |
3.5.0-next.4 | 1,357 | 3/27/2024 |
3.5.0-next.3 | 9,874 | 3/18/2024 |
3.5.0-next.2 | 22,912 | 3/11/2024 |
3.5.0-next.1 | 714 | 3/9/2024 |
3.4.0 | 426,668 | 2/23/2024 |
3.4.0-next.5 | 1,802 | 2/20/2024 |
3.4.0-next.4 | 904 | 2/16/2024 |
3.4.0-next.3 | 4,871 | 2/5/2024 |
3.4.0-next.2 | 22,066 | 1/10/2024 |
3.4.0-next.1 | 341 | 1/6/2024 |
3.3.1-next.1 | 2,953 | 12/18/2023 |
3.3.0 | 624,899 | 12/12/2023 |
3.3.0-next.6 | 1,028 | 12/6/2023 |
3.3.0-next.5 | 1,394 | 11/28/2023 |
3.3.0-next.4 | 2,749 | 11/22/2023 |
3.3.0-next.3 | 8,427 | 11/19/2023 |
3.3.0-next.2 | 3,637 | 10/26/2023 |
3.3.0-next.1 | 3,857 | 10/11/2023 |
3.2.0 | 719,085 | 9/18/2023 |
3.2.0-next.4 | 1,408 | 9/12/2023 |
3.2.0-next.3 | 476 | 9/11/2023 |
3.2.0-next.2 | 357 | 9/5/2023 |
3.2.0-next.1 | 492 | 8/29/2023 |
3.1.0 | 159,773 | 8/18/2023 |
3.1.0-next.2 | 118 | 8/18/2023 |
3.1.0-next.1 | 4,685 | 8/8/2023 |
3.0.0 | 44,180 | 8/7/2023 |
3.0.0-next.1 | 390 | 8/2/2023 |
2.9.0-next.4 | 6,965 | 7/26/2023 |
2.9.0-next.3 | 869 | 7/16/2023 |
2.9.0-next.2 | 5,083 | 6/13/2023 |
2.9.0-next.1 | 5,586 | 5/11/2023 |
2.8.0 | 600,114 | 4/27/2023 |
2.8.0-next.2 | 535 | 4/20/2023 |
2.8.0-next.1 | 18,271 | 3/23/2023 |
2.7.1-next.1 | 677 | 3/17/2023 |
2.7.0 | 179,327 | 3/13/2023 |
2.7.0-next.2 | 863 | 1/26/2023 |
2.7.0-next.1 | 628 | 1/23/2023 |
2.6.0 | 101,754 | 1/12/2023 |
2.6.0-next.4 | 132 | 1/11/2023 |
2.6.0-next.3 | 190 | 1/9/2023 |
2.6.0-next.2 | 310 | 12/14/2022 |
2.6.0-next.1 | 591 | 12/12/2022 |
2.5.0 | 91,087 | 10/12/2022 |
2.5.0-next.2 | 360 | 9/28/2022 |
2.5.0-next.1 | 261 | 9/19/2022 |
2.4.1-next.1 | 228 | 9/16/2022 |
2.4.0 | 22,050 | 9/8/2022 |
2.3.3 | 3,135 | 8/10/2022 |
2.3.2 | 943 | 8/9/2022 |
2.3.1 | 61,659 | 5/31/2022 |
2.3.0 | 2,449 | 5/16/2022 |
2.2.1 | 3,565 | 4/6/2022 |
2.2.0 | 1,292 | 3/15/2022 |
2.1.0 | 1,103 | 2/28/2022 |
2.0.0 | 1,267 | 2/21/2022 |
# [3.0.0-next.1](https://github.com/riok/mapperly/compare/v2.9.0-next.4...v3.0.0-next.1) (2023-08-02)
### Bug Fixes
* handle internal visibility correctly ([#597](https://github.com/riok/mapperly/issues/597)) ([5d4596a](https://github.com/riok/mapperly/commit/5d4596a2e963032b5d61be627f99581649868368))
* improve performance for member resolution ([#603](https://github.com/riok/mapperly/issues/603)) ([641c1bf](https://github.com/riok/mapperly/commit/641c1bf594f751c0aaf30aa7403e1fc862cd37ef))
* make all attributes sealed ([#614](https://github.com/riok/mapperly/issues/614)) ([24614c0](https://github.com/riok/mapperly/commit/24614c0f9b0350bf1af1a42a6049a316947850d0))
* prevent mapping backing field ([#608](https://github.com/riok/mapperly/issues/608)) ([d768dbb](https://github.com/riok/mapperly/commit/d768dbb4f74a889cf91784721a2b2a257744386c))
* remove obsolete MapperIgnoreAttribute ([#611](https://github.com/riok/mapperly/issues/611)) ([c7a5099](https://github.com/riok/mapperly/commit/c7a509966a714dbb5bce92306798e1fe0196de60))
### Features
* Map all accessible members by default ([#597](https://github.com/riok/mapperly/issues/597)) ([#612](https://github.com/riok/mapperly/issues/612)) ([3d2ed69](https://github.com/riok/mapperly/commit/3d2ed699119da04213d8e3303fc56471e411a770))
### BREAKING CHANGES
* mark all attributes as sealed
* Include accessible internal and private members in mappings
* Obsolete MapperIgnoreAttribute is removed and needs to be replaced with MapperIgnoreTargetAttribute