TinyMapper 3.0.3
.NET Standard 1.3
This package targets .NET Standard 1.3. The package is compatible with this framework or higher.
.NET Framework 3.5
This package targets .NET Framework 3.5. The package is compatible with this framework or higher.
dotnet add package TinyMapper --version 3.0.3
NuGet\Install-Package TinyMapper -Version 3.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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.
#r "nuget: TinyMapper, 3.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TinyMapper as a Cake Addin #addin nuget:?package=TinyMapper&version=3.0.3 // Install TinyMapper as a Cake Tool #tool nuget:?package=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:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net35 is compatible. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.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)
NuGet packages (29)
Showing the top 5 NuGet packages that depend on TinyMapper:
Package | Downloads |
---|---|
WireMock.Net
Lightweight Http Mocking Server for .Net, inspired by WireMock from the Java landscape. |
|
Admetus.Domain
Package Description |
|
LightestNight.Luminescence.BlazorComponents
The component library for Blazor that enables the use of Luminescence form generation |
|
Chaos.BasicFrame.CQRS
Package Description |
|
Admetus.Domain.Utils
Package Description |
GitHub repositories (9)
Showing the top 5 popular GitHub repositories that depend on TinyMapper:
Repository | Stars |
---|---|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
WireMock-Net/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
|
|
TinyMapper/TinyMapper
A quick object-object mapper for .NET
|
|
fluentsprings/ExpressMapper
Mapping .Net types
|
|
DogusTeknoloji/BatMap
🦇 Convention-based, fast object mapper.
|
Version | Downloads | Last updated |
---|---|---|
3.0.3 | 12,670,573 | 12/8/2019 |
3.0.2-beta | 48,401 | 6/7/2018 |
3.0.1-beta | 25,286 | 10/25/2017 |
2.1.4-beta | 8,465 | 8/18/2017 |
2.1.3-beta | 2,896 | 8/16/2017 |
2.1.2-beta | 2,193 | 8/14/2017 |
2.1.1-beta | 2,616 | 8/13/2017 |
2.0.8 | 701,908 | 12/3/2015 |
2.0.6 | 4,284 | 11/2/2015 |
2.0.5 | 7,368 | 9/15/2015 |
2.0.1 | 10,432 | 7/15/2015 |
2.0.0 | 3,837 | 7/12/2015 |
1.0.22 | 2,410 | 7/12/2015 |
1.0.20 | 2,827 | 6/24/2015 |
1.0.18 | 3,044 | 4/12/2015 |
1.0.6 | 2,463 | 3/24/2015 |
1.0.4 | 2,391 | 3/20/2015 |
1.0.2 | 2,265 | 3/11/2015 |