Transitio.Mapper
1.0.6
See the version list below for details.
dotnet add package Transitio.Mapper --version 1.0.6
NuGet\Install-Package Transitio.Mapper -Version 1.0.6
<PackageReference Include="Transitio.Mapper" Version="1.0.6" />
<PackageVersion Include="Transitio.Mapper" Version="1.0.6" />
<PackageReference Include="Transitio.Mapper" />
paket add Transitio.Mapper --version 1.0.6
#r "nuget: Transitio.Mapper, 1.0.6"
#:package Transitio.Mapper@1.0.6
#addin nuget:?package=Transitio.Mapper&version=1.0.6
#tool nuget:?package=Transitio.Mapper&version=1.0.6
Transitio
Transitio is a lightweight, high-performance object mapping framework for .NET with support for profiles, nested mapping, and dependency injection.
๐ฆ Installation
dotnet add package Transitio.Mapper
# optional: Microsoft.Extensions.DependencyInjection integration
dotnet add package Transitio.Dependency
๐ Quick start
using Transitio.Mapper;
public class User { public string Name { get; set; } = ""; public int Age { get; set; } }
public class UserDto { public string Name { get; set; } = ""; public int Age { get; set; } }
var config = new TransitioMapperConfiguration(cfg =>
{
cfg.CreateMap<User, UserDto>();
});
IMapper mapper = config.BuildMapper();
var dto = mapper.Map<UserDto>(new User { Name = "Hitesh", Age = 30 });
// dto.Name == "Hitesh", dto.Age == 30
Using dependency injection? Register with services.AddTransitio(...) and inject IMapper.
See the Getting Started guide.
โจ Features
- โก Expression-based high-performance mapping
- ๐งฉ Profiles for modular configuration
- ๐ Nested object mapping (including nested collection properties)
- ๐ฆ Collection mapping (List โ List, IEnumerable โ array, IEnumerable โ interface)
- ๐งต Thread-safe: a single mapper instance can be shared as a singleton
- ๐ง Custom member mapping,
Ignore,
Conditional mapping,
and Reverse mapping - ๐ Full object transformation with
ConvertUsing(...)(type / instance / delegate)
and context-aware mapping viaIMappingContext - ๐งฌ Inheritance & reuse with
Include/IncludeBase - ๐งช Null-value handling
and configuration validation - ๐ฆ Dependency injection: assembly scanning, configurable lifetimes
(scoped converters), fail-fast validation, and keyed mappers - ๐ฏ Supports .NET 8 & .NET 10
๐ Documentation
- Getting Started โ install, first map, mapping rules
- Core Mapping Features โ
ForMember,Ignore,Condition,ReverseMap, nested & collection mapping, null handling, validation - Full Object Transformation โ
ConvertUsing(type / instance / delegate) andIMappingContext - Inheritance & Reusability โ
Include/IncludeBase - Dependency Injection โ
AddTransitio, assembly scanning, lifetimes, validation, keyed mappers
A runnable end-to-end demo lives in samples/BasicSample.
See the Changelog for release history.
๐ค Maintainers
Maintained by the Transitio
๐ License
This project is licensed under the MIT License
| Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Transitio.Mapper:
| Package | Downloads |
|---|---|
|
Transitio.Dependency
Dependency wrapper for Transitio |
GitHub repositories
This package is not used by any popular GitHub repositories.