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.

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:

GitHub repositories (4)

Showing the top 4 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 通用权限管理系统、后台框架、信息管理系统基础框架

Version History

Version Downloads Last updated
3.0.3 13,751 12/8/2019
3.0.2-beta 27,737 6/7/2018
3.0.1-beta 7,827 10/25/2017
2.1.4-beta 3,821 8/18/2017
2.1.3-beta 805 8/16/2017
2.1.2-beta 638 8/14/2017
2.1.1-beta 862 8/13/2017
2.0.8 215,804 12/3/2015
2.0.6 2,057 11/2/2015
2.0.5 2,742 9/15/2015
2.0.1 2,167 7/15/2015
2.0.0 828 7/12/2015
1.0.22 619 7/12/2015
1.0.20 965 6/24/2015
1.0.18 1,198 4/12/2015
1.0.6 725 3/24/2015
1.0.4 648 3/20/2015
1.0.2 536 3/11/2015