Transitio.Mapper
1.0.4
See the version list below for details.
dotnet add package Transitio.Mapper --version 1.0.4
NuGet\Install-Package Transitio.Mapper -Version 1.0.4
<PackageReference Include="Transitio.Mapper" Version="1.0.4" />
<PackageVersion Include="Transitio.Mapper" Version="1.0.4" />
<PackageReference Include="Transitio.Mapper" />
paket add Transitio.Mapper --version 1.0.4
#r "nuget: Transitio.Mapper, 1.0.4"
#:package Transitio.Mapper@1.0.4
#addin nuget:?package=Transitio.Mapper&version=1.0.4
#tool nuget:?package=Transitio.Mapper&version=1.0.4
Transitio
Transitio is a lightweight, high-performance object mapping framework for .NET with support for profiles, nested mapping, and dependency injection.
β¨ 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 Mapping Capabilities
- π§ Custom member mapping with
ForMember(...).MapFrom(...) - π« Property ignore support with
ForMember(...).Ignore() - π― Conditional property mapping with
ForMember(...).Condition(...) - π Reverse mapping with
ReverseMap()
π Full Object Transformation
- π Replace entire mapping logic using
ConvertUsing(...)- β
Type-based converter (
ConvertUsing<TConverter>()) - β
Instance-based converter (
ConvertUsing(instance)) - β
Delegate-based converter (
ConvertUsing((src, ctx) => {...}))
- β
Type-based converter (
- π§ Context-aware mapping with
IMappingContextfor runtime customization
𧬠Inheritance & Reusability
- 𧬠Reuse base mappings using
Include<TBaseSource, TBaseDestination>() - 𧬠Explicit base mapping support with
IncludeBase<TBaseSource, TBaseDestination>() - π Override base mappings in derived types using
ForMember
π§ͺ Behavior Control
- π§ͺ Optional
SetIgnoreNullValues(true)to preserve destination defaults when source properties are null - β Mapping validation for early error detection
βοΈ Integration & Platform
- π Built-in dependency injection support (
Microsoft.Extensions.DependencyInjection) - Type-based converters (
ConvertUsing<TConverter>()) are resolved from the container, so sonverts may declare constructor dependencies - π― Supports .NET 8 & .NET 10
βΉοΈ Mapping rules & limitations
- Only public properties are mapped. Public fields are not mapped automatically - expose data as properties, or populate fields with a custom
ConvertUsing(...)converter. - Members are matched by name; "simple" members (primitives.
string,enum,DateTime,decimal.Guid) are copied directly, and complex/collection members are mapped recursively when a correspondingCreateMapexists. - For derived element types in collections, register a
CreateMapfor the concrete element type (maps are matched by exact type).
π Whatβs New
π Introduced
ConvertUsing(...)for full object transformation- Supports type-based, instance-based, and delegate-based converters
- Enables context-aware mapping via
IMappingContext
𧬠Added inheritance-based mapping support
Include<TBaseSource, TBaseDestination>()IncludeBase<TBaseSource, TBaseDestination>()- Allows reuse and override of base mappings
π§ͺ Added
SetIgnoreNullValues(true)to preserve destination defaults when source values are nullπ¦ Expanded collection mapping to support arrays and interface-based destinations
π¦ Installation
dotnet add package Transitio.Mapper
dotnet add package Transitio.Dependency
π¨βπ» Maintainers
Maintained by the Transitio Team
π License
This software is provided under a custom proprietary license. Commercial licensing options may be available in the future.
| 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.