TinyMapper 3.0.3

TinyMapper - a tiny and quick object mapper for .Net.

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:

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 (16)

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
Admetus.Domain.Utils
Package Description
Chaos.BasicFrame.CQRS
Package Description
Vosung.Utils
Package Description

GitHub repositories (5)

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 History

Version Downloads Last updated
3.0.3 87,937 12/8/2019
3.0.2-beta 35,864 6/7/2018
3.0.1-beta 8,815 10/25/2017
2.1.4-beta 5,879 8/18/2017
2.1.3-beta 1,075 8/16/2017
2.1.2-beta 853 8/14/2017
2.1.1-beta 1,189 8/13/2017
2.0.8 325,717 12/3/2015
2.0.6 2,406 11/2/2015
2.0.5 4,642 9/15/2015
2.0.1 5,297 7/15/2015
2.0.0 1,088 7/12/2015
1.0.22 831 7/12/2015
1.0.20 1,262 6/24/2015
1.0.18 1,408 4/12/2015
1.0.6 952 3/24/2015
1.0.4 864 3/20/2015
1.0.2 747 3/11/2015