Riok.Mapperly 2.5.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Riok.Mapperly --version 2.5.0                
NuGet\Install-Package Riok.Mapperly -Version 2.5.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Riok.Mapperly" Version="2.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Riok.Mapperly --version 2.5.0                
#r "nuget: Riok.Mapperly, 2.5.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Riok.Mapperly as a Cake Addin
#addin nuget:?package=Riok.Mapperly&version=2.5.0

// Install Riok.Mapperly as a Cake Tool
#tool nuget:?package=Riok.Mapperly&version=2.5.0                

Mapperly

Nuget Nuget GitHub

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.

License

Mapperly is Apache 2.0 licensed.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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

Fanzoo.Kernel

An opinionated framework for building scalable web applications.

Indice.Hive.Core

Package Description

Eternet.AspNetCore.DocumentDb.Crud

AspNet Core DocumentDb CRUD framework using Marten for Document DB and Events Store

BeamOS.Tests.Common

Package Description

GitHub repositories (12)

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.0.0-next.3 3,109 8/13/2024
4.0.0-next.2 361 8/6/2024
4.0.0-next.1 1,407 6/30/2024
3.6.0 389,396 6/18/2024
3.6.0-next.2 1,254 6/3/2024
3.6.0-next.1 3,463 5/3/2024
3.5.1 325,023 4/23/2024
3.5.1-next.2 952 4/15/2024
3.5.1-next.1 216 4/9/2024
3.5.0 173,466 4/5/2024
3.5.0-next.4 1,038 3/27/2024
3.5.0-next.3 6,875 3/18/2024
3.5.0-next.2 10,965 3/11/2024
3.5.0-next.1 597 3/9/2024
3.4.0 316,366 2/23/2024
3.4.0-next.5 1,313 2/20/2024
3.4.0-next.4 865 2/16/2024
3.4.0-next.3 3,498 2/5/2024
3.4.0-next.2 15,517 1/10/2024
3.4.0-next.1 314 1/6/2024
3.3.1-next.1 2,750 12/18/2023
3.3.0 499,795 12/12/2023
3.3.0-next.6 953 12/6/2023
3.3.0-next.5 1,354 11/28/2023
3.3.0-next.4 2,220 11/22/2023
3.3.0-next.3 5,443 11/19/2023
3.3.0-next.2 3,234 10/26/2023
3.3.0-next.1 3,506 10/11/2023
3.2.0 575,204 9/18/2023
3.2.0-next.4 1,377 9/12/2023
3.2.0-next.3 452 9/11/2023
3.2.0-next.2 307 9/5/2023
3.2.0-next.1 473 8/29/2023
3.1.0 142,390 8/18/2023
3.1.0-next.2 103 8/18/2023
3.1.0-next.1 4,306 8/8/2023
3.0.0 37,350 8/7/2023
3.0.0-next.1 317 8/2/2023
2.9.0-next.4 6,379 7/26/2023
2.9.0-next.3 642 7/16/2023
2.9.0-next.2 5,033 6/13/2023
2.9.0-next.1 5,544 5/11/2023
2.8.0 508,189 4/27/2023
2.8.0-next.2 514 4/20/2023
2.8.0-next.1 16,438 3/23/2023
2.7.1-next.1 653 3/17/2023
2.7.0 159,945 3/13/2023
2.7.0-next.2 803 1/26/2023
2.7.0-next.1 603 1/23/2023
2.6.0 85,249 1/12/2023
2.6.0-next.4 104 1/11/2023
2.6.0-next.3 161 1/9/2023
2.6.0-next.2 284 12/14/2022
2.6.0-next.1 561 12/12/2022
2.5.0 79,316 10/12/2022
2.5.0-next.2 314 9/28/2022
2.5.0-next.1 216 9/19/2022
2.4.1-next.1 187 9/16/2022
2.4.0 16,807 9/8/2022
2.3.3 3,055 8/10/2022
2.3.2 882 8/9/2022
2.3.1 61,502 5/31/2022
2.3.0 2,382 5/16/2022
2.2.1 3,502 4/6/2022
2.2.0 1,220 3/15/2022
2.1.0 1,036 2/28/2022
2.0.0 1,072 2/21/2022

# [2.5.0](https://github.com/riok/mapperly/compare/v2.4.0...v2.5.0) (2022-10-12)


### Bug Fixes

* ignore accessible source properties with inaccessible getters and accessible target properties with inaccessible getters ([#141](https://github.com/riok/mapperly/issues/141)) ([d39ace7](https://github.com/riok/mapperly/commit/d39ace700a4fdcd9f0bfd9c95059009d5417b10c))


### Features

* object factory source object parameter ([#147](https://github.com/riok/mapperly/issues/147)) ([5a50b17](https://github.com/riok/mapperly/commit/5a50b172efc90f0cf3dfac201f6d43133f72ce99))
* object factory support ([#144](https://github.com/riok/mapperly/issues/144)) ([9001678](https://github.com/riok/mapperly/commit/90016785a4b52ebc3fdc2b192999855f65037e2e))
* use object factories for enumerables and dictionaries ([#149](https://github.com/riok/mapperly/issues/149)) ([c76a48b](https://github.com/riok/mapperly/commit/c76a48b0a680193b0210358aa75694f62341e690))