Table of Contents

Interface IMapper

Namespace
Mapperion
Assembly
Mapperion.dll

Performs object-to-object mapping using a configuration built at startup. Instances are immutable and safe for concurrent use.

public interface IMapper
Extension Methods

Methods

Map(object?, Type, Type)

Maps source to destinationType without generics.

Map(object?, Type, Type, Action<IMappingOperationOptions>)

Maps source to destinationType without generics, passing values the converters, resolvers and steps of this operation can read.

Map<TDestination>(object?)

Maps source to a new instance of TDestination.

Map<TDestination>(object?, Action<IMappingOperationOptions>)

Maps source to a new instance of TDestination, passing values the converters, resolvers and steps of this operation can read.

Map<TSource, TDestination>(TSource)

Maps source to a new instance of TDestination using the statically known source type, avoiding a runtime type lookup.

Map<TSource, TDestination>(TSource, Action<IMappingOperationOptions>)

Maps source using the statically known source type, passing values the converters, resolvers and steps of this operation can read.

Map<TSource, TDestination>(TSource, TDestination)

Maps source onto an existing destination instance.

Map<TSource, TDestination>(TSource, TDestination, Action<IMappingOperationOptions>)

Maps source onto an existing instance, passing values the converters, resolvers and steps of this operation can read.

ProjectTo<TDestination>(IQueryable)

Rewrites a query so the provider selects TDestination directly, without materialising the source. Only maps a query provider can translate work here: converters, resolvers and the before and after steps are reported, not skipped.