# TinyMapper **Repository Path**: stylexing/TinyMapper ## Basic Information - **Project Name**: TinyMapper - **Description**: 据说比AutoMapper性能高,轻量,简单易用的对象映射 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-23 - **Last Updated**: 2026-08-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README TinyMapper - a quick object mapper for .Net ====================================================== [![Nuget downloads](https://img.shields.io/nuget/v/tinymapper.svg)](https://www.nuget.org/packages/TinyMapper/) [![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/TinyMapper/TinyMapper/blob/master/LICENSE) [![GitHub license](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/) ## Performance Comparison ![Performance Comparison](https://raw.githubusercontent.com/TinyMapper/TinyMapper/master/Source/Benchmark/DataSource/PrimitiveTypeMapping.jpg) ## Installation Available on [nuget](https://www.nuget.org/packages/TinyMapper/) PM> Install-Package TinyMapper ## Getting Started ```csharp TinyMapper.Bind(); var person = new Person { Id = Guid.NewGuid(), FirstName = "John", LastName = "Doe" }; var personDto = TinyMapper.Map(person); ``` Ignore mapping source members and bind members with different names/types ```csharp TinyMapper.Bind(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)); }); var person = new Person { Id = Guid.NewGuid(), FirstName = "John", LastName = "Doe", Emails = new List{"support@tinymapper.net", "MyEmail@tinymapper.net"} }; var personDto = TinyMapper.Map(person); ``` `TinyMapper` supports the following platforms: * .Net 3.5+ * [.NET Standard 1.3](https://docs.microsoft.com/en-us/dotnet/standard/net-standard) * .NET Core * Mono ## What to read * [TinyMapper: yet another object to object mapper for .net](http://www.codeproject.com/Articles/886420/TinyMapper-yet-another-object-to-object-mapper-for) * [Complex mapping](https://github.com/TinyMapper/TinyMapper/wiki/Complex-mapping) * [How to create custom mapping](https://github.com/TinyMapper/TinyMapper/wiki/Custom-mapping) ## Contributors A big thanks to all of TinyMapper's contributors: * [nzaugg](https://github.com/nzaugg) * [Sdzeng](https://github.com/Sdzeng) * [iEmiya](https://github.com/iEmiya) * [lijaso](https://github.com/lijaso) * [nomailme](https://github.com/nomailme) * [Skaiol](https://github.com/Skaiol) * [Sufflavus](https://github.com/Sufflavus) * [qihangnet](https://github.com/qihangnet) * [teknogecko](https://github.com/teknogecko) * [Samtrion](https://github.com/Samtrion) * [DerHulk](https://github.com/DerHulk)