Skip to content

Repository files navigation

TinyMapper - a quick object mapper for .Net

Nuget downloadsGitHub licenseGitHub license

Performance Comparison

Performance Comparison

Installation

Available on nuget

PM> Install-Package TinyMapper

Getting Started

TinyMapper.Bind<Person,PersonDto>();varperson=newPerson{Id=Guid.NewGuid(),FirstName="John",LastName="Doe"};varpersonDto=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>));});varperson=newPerson{Id=Guid.NewGuid(),FirstName="John",LastName="Doe",Emails=newList<string>{"support@tinymapper.net","MyEmail@tinymapper.net"}};varpersonDto=TinyMapper.Map<PersonDto>(person);

TinyMapper supports the following platforms:

What to read

Contributors

A big thanks to all of TinyMapper's contributors:

About

A quick object-object mapper for .NET

Resources

Contributing

Stars

702 stars

Watchers

48 watching

Forks

Releases

Packages

Used by

Contributors

Languages