Popularity
5.7
Stable
Activity
0.0
Stable
691
49
112

Code Quality Rank: L5
Programming language: C#
License: MIT License
Tags: Mapper     TinyMapper    
Latest version: v3.0.3

TinyMapper alternatives and similar packages

Based on the "Misc" category.
Alternatively, view TinyMapper alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of TinyMapper or a related project?

Add another 'Misc' Package

README

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>{"[email protected]", "[email protected]"}
};

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

TinyMapper supports the following platforms:

What to read

Contributors

A big thanks to all of TinyMapper's contributors:


*Note that all licence references and agreements mentioned in the TinyMapper README section above are relevant to that project's source code only.