StoneKit.TransverseMapper 1.23.1205.121846

There is a newer version of this package available.
See the version list below for details.
dotnet add package StoneKit.TransverseMapper --version 1.23.1205.121846
NuGet\Install-Package StoneKit.TransverseMapper -Version 1.23.1205.121846
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="StoneKit.TransverseMapper" Version="1.23.1205.121846" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StoneKit.TransverseMapper --version 1.23.1205.121846
#r "nuget: StoneKit.TransverseMapper, 1.23.1205.121846"
#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 StoneKit.TransverseMapper as a Cake Addin
#addin nuget:?package=StoneKit.TransverseMapper&version=1.23.1205.121846

// Install StoneKit.TransverseMapper as a Cake Tool
#tool nuget:?package=StoneKit.TransverseMapper&version=1.23.1205.121846

Transverse - a quick object mapper for .Net

I'll publish the source code very soon on github.

Nuget downloads License

A tiny and quick object mapper for .Net v8.0+ Inspired by AutoMapper and TinyMapper, I'm trying to create a library named StoneKit which is based on dotnet core 8 features. Transverse is a part of that library and I'm aimed to make it the tiniest and fastest mapping library in dotnet.

Performance Comparison

Right now it performs faster than AutoMapper and I'm trying to improve it constantly. There is a benchmark project in the source code that I'm developing to showcase the performance.

Installation

Available on nuget

PM> Install-Package StoneKit.TransverseMapper

Getting Started

Transverse.Bind<Person, PersonDto>();

var person = new Person
{
	Id = Guid.NewGuid(),
	FirstName = "John",
	LastName = "Doe"
};

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

Ignore mapping source members and bind members with different names/types

Transverse.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 = Transverse.Map<PersonDto>(person);

Transverse only supports dotnet core 8.0

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on StoneKit.TransverseMapper:

Package Downloads
StoneKit.Infrastructure

StoneKit Infrastructure is a comprehensive boilerplate for starting new ASP.NET Core 8 API projects. It integrates essential libraries and services, including FluentValidation, Serilog logging, hashing, HttpClient, OpenAPI documentation, and more, to streamline the setup and development process.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.24.626.192712 48 6/26/2024
1.24.612.909 62 6/11/2024
1.24.611.233128 65 6/11/2024
1.24.611.232806 59 6/11/2024
1.24.603.121931 65 6/3/2024
1.24.317.170732 224 3/17/2024
1.24.317.170549 68 3/17/2024
1.24.317.164653 70 3/17/2024
1.24.317.161400 95 3/17/2024
1.24.121.184218 80 1/21/2024
1.24.121.182730 68 1/21/2024
1.23.1205.143421 157 12/5/2023
1.23.1205.132045 110 12/5/2023
1.23.1205.121846 87 12/5/2023
1.23.1205.121045 112 12/5/2023
1.23.1204.161652 84 12/4/2023
1.23.1204.155355 108 12/4/2023