PanoramicData.Mapper 10.0.85

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

License: MIT

PanoramicData.Mapper

Need help with APIs or .NET? Panoramic Data are experts in APIs and .NET, and we can help with your development. Contact us or see our software services.

A comprehensive, MIT-licensed, API-compatible replacement for AutoMapper.

Supports .NET Standard 2.0 and .NET 11.0.

Nuget Nuget License Codacy Badge

Overview

PanoramicData.Mapper is a comprehensive, API-compatible replacement for AutoMapper with convention-based object mapping, explicit member configuration, and advanced features including mapping inheritance, value resolvers, type converters, open generics, EF Core projection, and more. It is a clean-room, black-box reimplementation — no AutoMapper source code was referenced.

Supported Features

Configuration & setup

  • Profile-based configuration — derive from Profile and call CreateMap<TSource, TDestination>()
  • Convention-based mapping — properties with matching names and compatible types map automatically
  • ReverseMap — .ReverseMap() creates the inverse mapping automatically
  • AssertConfigurationIsValid — detects unmapped destination properties at startup
  • DI integration — AddAutoMapper() extension methods for IServiceCollection

Member configuration

  • ForMember / Ignore — skip specific destination properties
  • ForMember / MapFrom — custom source expressions including nested property access
  • Condition / PreCondition — conditional member mapping (evaluated after/before value resolution)
  • NullSubstitute — substitute a default value when the source resolves to null
  • UseDestinationValue — preserve existing destination property values
  • ForPath — .ForPath(d => d.Inner.Prop, opt => ...) for deep nested member configuration
  • ForCtorParam — .ForCtorParam("name", opt => ...) for constructor parameter mapping
  • ForAllMembers — apply configuration to all destination members
  • [Ignore] attribute — PanoramicData.Mapper.Configuration.Annotations.IgnoreAttribute
  • IgnoreAllPropertiesWithAnInaccessibleSetter — extension method to ignore all destination properties with non-public or absent setters

Custom resolution & hooks

  • ConvertUsing — lambda, ITypeConverter<TSrc, TDst> type, or instance for full-type conversion
  • ConstructUsing — custom destination construction via lambda
  • Value Resolvers — IValueResolver<TSrc, TDst, TMember> for custom resolution logic
  • Value Transformers — .AddTransform<T>(expr) for per-type value transforms
  • BeforeMap / AfterMap — inline lambda and generic IMappingAction<TSrc, TDest> pre/post-mapping callbacks

Type relationships

  • Nested mappings — recursive mapping of complex child types and collection properties when a CreateMap exists for the child types
  • Collection/List/Array mapping — mapper.Map<List<Dest>>(sourceList) maps collections automatically when an element-type map is registered
  • Flattening — PascalCase destination property names are split and traversed on the source graph (e.g. CustomerName → Customer.Name); also matches GetX() methods
  • Mapping Inheritance — Include, IncludeBase, IncludeAllDerived for polymorphic hierarchies
  • Open Generics — CreateMap(typeof(Source<>), typeof(Dest<>)) for generic type mappings
  • MaxDepth — .MaxDepth(n) to limit recursive mapping depth

Execution & projection

  • Map to new — mapper.Map<TDest>(source) creates a new destination
  • Map to existing — mapper.Map(source, destination) updates an existing object
  • ProjectTo — IQueryable<T>.ProjectTo<TDest>(configurationProvider) for EF Core SQL projection, including recursive projection of nested complex members and collections of complex elements
  • ExplicitExpansion — .ForMember(d => d.Children, opt => opt.ExplicitExpansion()) excludes a member from ProjectTo projections unless requested via ProjectTo(config, d => d.Children); has no effect on in-memory Map

Installation

dotnet add package PanoramicData.Mapper

Quick Start

using PanoramicData.Mapper;

// Define a profile
public class MyProfile : Profile
{
    public MyProfile()
    {
        CreateMap<Source, Destination>()
            .ForMember(d => d.Secret, opt => opt.Ignore())
            .ForMember(d => d.FullName, opt => opt.MapFrom(s => s.FirstName + " " + s.LastName));
    }
}

// Configure and use
var config = new MapperConfiguration(cfg => cfg.AddProfile<MyProfile>());
config.AssertConfigurationIsValid();

IMapper mapper = config.CreateMapper();
var dest = mapper.Map<Destination>(source);

DI Registration

// In Program.cs / Startup.cs
services.AddAutoMapper(typeof(MyProfile).Assembly);

// Or with explicit configuration
services.AddAutoMapper(cfg => cfg.AddProfile<MyProfile>());

Migration from AutoMapper

  1. Replace the AutoMapper NuGet package with PanoramicData.Mapper
  2. Update using directives:
    • using AutoMapper; → using PanoramicData.Mapper;
    • using AutoMapper.QueryableExtensions; → using PanoramicData.Mapper.QueryableExtensions;
    • using AutoMapper.Configuration.Annotations; → using PanoramicData.Mapper.Configuration.Annotations;
  3. The AddAutoMapper() DI extension methods and all type names (Profile, IMapper, MapperConfiguration, etc.) remain the same

License

MIT — see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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.  net11.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PanoramicData.Mapper:

Package Downloads
LogicMonitor.Datamart

LogicMonitor Datamart

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.85 0 11/14/2026
10.0.83 68 11/13/2026
10.0.52 1,076 9/14/2026
10.0.47 600 9/3/2026
10.0.37 2,380 6/26/2026
10.0.29 11,554 4/27/2026
10.0.28 596 4/16/2026
10.0.26 266 4/16/2026
10.0.25 231 4/16/2026
10.0.24 233 4/16/2026
10.0.23 307 4/9/2026
10.0.20 727 4/5/2026
10.0.19 829 4/2/2026
10.0.16 402 3/31/2026
10.0.15 236 3/31/2026
10.0.14 228 3/31/2026
10.0.13 597 3/19/2026
10.0.12 324 3/15/2026
10.0.11 222 3/15/2026
10.0.10 238 3/15/2026
Loading failed

10.0.37: feat - ProjectTo now projects nested complex members and collections of complex elements (e.g. ICollection of TChildModel -> ICollection of TChildDto) element-by-element, matching the in-memory Map path and fixing the InvalidCastException it previously threw. Adds ExplicitExpansion() and ProjectTo(config, membersToExpand) to opt members out of / into projection. Backward compatible. See https://github.com/panoramicdata/PanoramicData.Mapper/blob/main/CHANGELOG.md for details.