Simple.AutoMapper 1.0.12

dotnet add package Simple.AutoMapper --version 1.0.12
                    
NuGet\Install-Package Simple.AutoMapper -Version 1.0.12
                    
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="Simple.AutoMapper" Version="1.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Simple.AutoMapper" Version="1.0.12" />
                    
Directory.Packages.props
<PackageReference Include="Simple.AutoMapper" />
                    
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 Simple.AutoMapper --version 1.0.12
                    
#r "nuget: Simple.AutoMapper, 1.0.12"
                    
#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 Simple.AutoMapper@1.0.12
                    
#: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=Simple.AutoMapper&version=1.0.12
                    
Install as a Cake Addin
#tool nuget:?package=Simple.AutoMapper&version=1.0.12
                    
Install as a Cake Tool

Simple.AutoMapper

NuGet .NET License Downloads Coverage

High-performance object mapping for .NET with expression tree compilation. Simple API, powerful configuration options.

Latest - Patch overloads (new object, type-inferred, collection), Map in-place via ISimpleMapper. See Release Notes.

Installation

dotnet add package Simple.AutoMapper

Target Frameworks: net8.0, net9.0, net10.0

Quick Start

using Simple.AutoMapper.Core;

// Map — copy all properties to new object
var dto = Mapper.Map<User, UserDto>(user);

// Patch — copy only non-null properties (HTTP PATCH scenario)
Mapper.Patch(partialDto, existingEntity);

Before & After

// ❌ Without Simple.AutoMapper — manual property-by-property copy
var dto = new UserDto();
dto.Id = user.Id;
dto.FirstName = user.FirstName;
dto.LastName = user.LastName;
dto.Email = user.Email;
// ... repeat for every property, every model, every service

// ✅ With Simple.AutoMapper — one line
var dto = Mapper.Map<User, UserDto>(user);

For the full before/after comparison of every feature, see the Usage Guide.

Performance

  • Expression tree compilation for fast subsequent mappings
  • Thread-safe caching of compiled mappers
  • First mapping incurs compilation cost; subsequent calls are optimized

Test Coverage

  • 242+ tests passing
  • 92.9% line coverage, 88.8% branch coverage

Documentation

Samples

Sample Location Demonstrates
Console samples/Console/ All 19 features with static Mapper
WebAPI samples/WebAPI/ REST API with DI, PUT/PATCH endpoints

License

MIT License - see LICENSE.md

Team

Core Development Team

  • SEONGAHN - Lead Developer & Project Architect
  • YUJIN - Senior Developer & Exchange Integration Specialist
  • SEJIN - Software Developer & API Implementation

Built with care by the ODINSOFT Team | GitHub

Product 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.12 94 6/1/2026
1.0.11 120 3/19/2026
1.0.10 166 2/1/2026
1.0.9 146 1/11/2026
1.0.8 231 10/27/2025
1.0.6 203 8/22/2025
1.0.5 208 8/21/2025
1.0.4 211 8/20/2025

v1.0.12
 Add DateOnly and TimeOnly mapping support

 DateOnly, TimeOnly, and their nullable forms are now recognized as simple types
 and copied by direct assignment. Previously they were silently skipped: as structs
 they matched neither IsSimpleType (which listed only DateTime/DateTimeOffset/TimeSpan)
 nor IsComplexType (which requires a class), so no mapping branch handled them and the
 destination was left at its default value (0001-01-01 / 00:00:00).

 - Add DateOnly and TimeOnly to IsSimpleType; nullable forms handled by the existing path
 - Add [Owned] entity mapping tests
 - Disable snupkg generation (redundant with embedded PDB)