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
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:
- .Net 3.5+
- .NET Standard 1.3
- .NET Core
- Mono
What to read
- TinyMapper: yet another object to object mapper for .net
- Complex mapping
- How to create custom mapping
Contributors
A big thanks to all of TinyMapper's contributors:
TinyMapper - a quick object mapper for .Net
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:
- .Net 3.5+
- .NET Standard 1.3
- .NET Core
- Mono
What to read
- TinyMapper: yet another object to object mapper for .net
- Complex mapping
- How to create custom mapping
Contributors
A big thanks to all of TinyMapper's contributors:
Dependencies
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETStandard 1.3
- System.Collections.NonGeneric (>= 4.3.0)
- System.ComponentModel.TypeConverter (>= 4.3.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.3.0)
Used By
NuGet packages (13)
Showing the top 5 NuGet packages that depend on TinyMapper:
Package | Downloads |
---|---|
Totvs.Moda.Domain
Biblioteca de funcionalidades para construção de Api.
|
|
Admetus.Domain
Package Description
|
|
Chaos.BasicFrame.CQRS
Package Description
|
|
Vosung.Utils
Package Description
|
|
LightestNight.System.EventSourcing.SqlStreamStore.Postgres
The libraries for using the Postgres implementation of Sql Stream Store.
|
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.
|
|
zwl568633995/AspNetCoreScaffolding
.NetCore基础框架,集成分布式中间件
|
|
chi8708/NBCZ_Admin
asp.net MVC5 + Dapper + layUI/easyUI 通用权限管理系统、后台框架、信息管理系统基础框架
|
Version History
Version | Downloads | Last updated |
---|---|---|
3.0.3 | 52,928 | 12/8/2019 |
3.0.2-beta | 32,883 | 6/7/2018 |
3.0.1-beta | 8,283 | 10/25/2017 |
2.1.4-beta | 4,955 | 8/18/2017 |
2.1.3-beta | 906 | 8/16/2017 |
2.1.2-beta | 700 | 8/14/2017 |
2.1.1-beta | 1,010 | 8/13/2017 |
2.0.8 | 279,019 | 12/3/2015 |
2.0.6 | 2,202 | 11/2/2015 |
2.0.5 | 4,257 | 9/15/2015 |
2.0.1 | 4,209 | 7/15/2015 |
2.0.0 | 914 | 7/12/2015 |
1.0.22 | 683 | 7/12/2015 |
1.0.20 | 1,063 | 6/24/2015 |
1.0.18 | 1,262 | 4/12/2015 |
1.0.6 | 795 | 3/24/2015 |
1.0.4 | 708 | 3/20/2015 |
1.0.2 | 591 | 3/11/2015 |