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:

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

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
3.0.3 8,161 12/8/2019
3.0.2-beta 26,493 6/7/2018
3.0.1-beta 7,436 10/25/2017
2.1.4-beta 3,426 8/18/2017
2.1.3-beta 760 8/16/2017
2.1.2-beta 593 8/14/2017
2.1.1-beta 823 8/13/2017
2.0.8 205,283 12/3/2015
2.0.6 1,968 11/2/2015
2.0.5 2,072 9/15/2015
2.0.1 1,997 7/15/2015
2.0.0 775 7/12/2015
1.0.22 581 7/12/2015
1.0.20 899 6/24/2015
1.0.18 1,151 4/12/2015
1.0.6 687 3/24/2015
1.0.4 605 3/20/2015
1.0.2 506 3/11/2015