Posts

Showing posts from July, 2026

.NET Object Mapper Guide: Transitio.Mapper with Expression Trees

Image
If you've worked with .NET for any length of time, you've reached for an object mapper — probably AutoMapper. It works, but as projects scale, reflection-heavy mapping starts to show its cost: slower runtime performance and configuration that's hard to reason about at scale. Transitio.Mapper is a lightweight, high-performance object mapping framework for .NET, built around expression-based mapping with support for profiles, nested mapping, and first-class dependency injection. Installing Transitio.Mapper 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<Use...