VOOZH about

URL: https://www.nuget.org/packages/StoneKit.TransverseMapper/

⇱ NuGet Gallery | StoneKit.TransverseMapper 2024.1.1.391401




👁 Image
StoneKit.TransverseMapper 2024.1.1.391401

dotnet add package StoneKit.TransverseMapper --version 2024.1.1.391401
 
 
NuGet\Install-Package StoneKit.TransverseMapper -Version 2024.1.1.391401
 
 
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="2024.1.1.391401" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StoneKit.TransverseMapper" Version="2024.1.1.391401" />
 
Directory.Packages.props
<PackageReference Include="StoneKit.TransverseMapper" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StoneKit.TransverseMapper --version 2024.1.1.391401
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StoneKit.TransverseMapper, 2024.1.1.391401"
 
 
#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.
#:package StoneKit.TransverseMapper@2024.1.1.391401
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StoneKit.TransverseMapper&version=2024.1.1.391401
 
Install as a Cake Addin
#tool nuget:?package=StoneKit.TransverseMapper&version=2024.1.1.391401
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Transverse - a quick object mapper for .Net

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

👁 Nuget downloads

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.

Method Mean Error StdDev Median
CollectionMapping_AutoMapper 2.061 �s 0.0405 �s 0.0433 �s 2.055 �s
CollectionMapping_Transverse 1.802 �s 0.0649 �s 0.1872 �s 1.722 �s
CollectionMapping_Handwritten 1.474 �s 0.0379 �s 0.1075 �s 1.459 �s

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 Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.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
2024.1.1.391401 273 10/5/2024
2024.1.1.305385 250 8/5/2024
2024.1.1.268769 231 7/9/2024
2024.1.1.261673 238 7/4/2024
2024.1.1.261665 252 7/4/2024
2024.1.1.261630 254 7/4/2024
2024.1.1.260673 235 7/3/2024
2024.1.1.260489 229 7/3/2024
2024.1.1.260485 253 7/3/2024
1.24.703.180757 491 7/3/2024
1.24.703.164608 1,016 7/3/2024
1.24.703.121212 715 7/3/2024
1.24.626.192712 241 6/26/2024
1.24.612.909 260 6/11/2024
1.24.611.233128 237 6/11/2024
1.24.611.232806 252 6/11/2024
1.24.603.121931 214 6/3/2024
1.24.317.170732 1,049 3/17/2024
1.24.317.170549 224 3/17/2024
1.24.317.164653 238 3/17/2024
Loading failed