🌮 Basic Property Mapping
Auto-map properties with matching names and types for quick transformations.
TacoMapper is designed to be readable, small, and efficient with the following features:
🌮 Basic Property Mapping
Auto-map properties with matching names and types for quick transformations.
🌯 Custom Transformations
Transform values during mapping with custom functions and expressions.
🥙 Conditional Mapping
Map properties based on conditions to handle complex business logic.
🌮 Combine Mapping
Combine multiple source properties into one destination property.
🔥 Fluent API
Chain mapping configurations for improved readability and maintainability.
📦 Collection Support
Map collections of objects efficiently with the same configuration.
🚫 Ignore Properties
Skip specific properties during mapping when needed.
⚡ Lightweight
Minimal dependencies and small footprint for better performance.
// Simple auto-mappingvar personDto = ObjectMapper.Map<Person, PersonDto>(person);
// Fluent API with custom mappingvar mapper = ObjectMapper.Create<Person, PersonDto>() .Map(dest => dest.Id, src => src.Id) .Map(dest => dest.Age, src => src.DateOfBirth, dob => DateTime.Now.Year - dob.Year) .Combine(dest => dest.FullName, src => $"{src.FirstName} {src.LastName}");
var result = mapper.MapFrom(person);
Ready to start mapping objects with TacoMapper? Check out our Getting Started Guide for installation instructions and your first mapping examples.
For more advanced scenarios, explore our comprehensive examples and API reference.