TinyMapper 3.0.3

Install-Package TinyMapper -Version 3.0.3
dotnet add package TinyMapper --version 3.0.3
<PackageReference Include="TinyMapper" Version="3.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TinyMapper --version 3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TinyMapper, 3.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install TinyMapper as a Cake Addin
#addin nuget:?package=TinyMapper&version=3.0.3

// Install TinyMapper as a Cake Tool
#tool nuget:?package=TinyMapper&version=3.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TinyMapper - a quick object mapper for .Net

Nuget downloads GitHub license GitHub license

Performance Comparison

Performance Comparison

Installation

Available on nuget

PM> Install-Package TinyMapper

Getting Started

TinyMapper.Bind<Person, PersonDto>();

var person = new Person
{
	Id = Guid.NewGuid(),
	FirstName = "John",
	LastName = "Doe"
};

var personDto = TinyMapper.Map<PersonDto>(person);

Ignore mapping source members and bind members with different names/types

TinyMapper.Bind<Person, PersonDto>(config =>
{
	config.Ignore(x => x.Id);
	config.Ignore(x => x.Email);
	config.Bind(source => source.LastName, target => target.Surname);
	config.Bind(target => source.Emails, typeof(List<string>));
});

var person = new Person
{
	Id = Guid.NewGuid(),
	FirstName = "John",
	LastName = "Doe",
	Emails = new List<string>{"support@tinymapper.net", "MyEmail@tinymapper.net"}
};

var personDto = TinyMapper.Map<PersonDto>(person);

TinyMapper supports the following platforms:

What to read

Contributors

A big thanks to all of TinyMapper's contributors:

NuGet packages (20)

Showing the top 5 NuGet packages that depend on TinyMapper:

Package Downloads
Admetus.Domain

Package Description

LightestNight.Luminescence.BlazorComponents

The component library for Blazor that enables the use of Luminescence form generation

Vosung.Utils

Package Description

Admetus.Domain.Utils

Package Description

Chaos.BasicFrame.CQRS

Package Description

GitHub repositories (6)

Showing the top 5 popular GitHub repositories that depend on TinyMapper:

Repository Stars
TinyMapper/TinyMapper
A quick object-object mapper for .NET
fluentsprings/ExpressMapper
Mapping .Net types
DogusTeknoloji/BatMap
🦇 Convention-based, fast object mapper.
chi8708/NBCZ_Admin
asp.net MVC5 + Dapper + layUI/easyUI 通用权限管理系统、后台框架、信息管理系统基础框架
zwl568633995/AspNetCoreScaffolding
.NetCore基础框架,集成分布式中间件
Version Downloads Last updated
3.0.3 186,220 12/8/2019
3.0.2-beta 40,278 6/7/2018
3.0.1-beta 13,237 10/25/2017
2.1.4-beta 7,054 8/18/2017
2.1.3-beta 1,178 8/16/2017
2.1.2-beta 955 8/14/2017
2.1.1-beta 1,293 8/13/2017
2.0.8 398,753 12/3/2015
2.0.6 2,590 11/2/2015
2.0.5 5,067 9/15/2015
2.0.1 6,578 7/15/2015
2.0.0 1,342 7/12/2015
1.0.22 978 7/12/2015
1.0.20 1,375 6/24/2015
1.0.18 1,620 4/12/2015
1.0.6 1,088 3/24/2015
1.0.4 1,004 3/20/2015
1.0.2 831 3/11/2015