AutoMapper
Create a named profile for grouped mapping configuration
Profile name
Profile configuration options
Create a named profile for grouped mapping configuration, and configure the profile
Profile name
Profile configuration callback
Add an existing profile
Profile to add
Add an existing profile type. Profile will be instantiated and added to the configuration.
Profile type
Supply a factory method callback for creating resolvers and type converters
Factory method
Creates a mapping configuration from the type to the type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Profile name
Mapping expression for more configuration options
Creates a mapping configuration from the type to the type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Profile name
Member list to validate
Mapping expression for more configuration options
Apply a mapping configuration for all maps in a profile
Profile name
Configuration to apply
Creates a mapping configuration from the source type to the destination type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Member list to validate
Profile name
Mapping expression for more configuration options
Get all configured type maps created
All configured type maps
Find the for the configured source and destination type
Configured source type
Configured destination type
Type map configuration
Find the for the configured type pair
Type pair
Type map configuration
Find the for the configured source and destination type
Source type
Destination type
Type map configuration
Find the for the configured source and destination type, checking the source/destination object types too
Source object
Destination object
Configured source type
Configured destination type
Type map configuration
Resolve the for the configured source and destination type, checking parent types
Configured source type
Configured destination type
Type map configuration
Resolve the for the configured type pair, checking parent types
Type pair
Type map configuration
Resolve the for the resolution result and destination type, checking parent types
Resolution result from the source object
Configured destination type
Type map configuration
Get named profile configuration
Profile name
Dry run all configured type maps and throw for each problem
Dry run single type map
Type map to check
Dry run all type maps in given profile
Profile name of type maps to test
Dry run all type maps in given profile
Profile type
Get all configured mappers
List of mappers
Get all configured mappers
List of mappers
Factory method to create formatters, resolvers and type converters
Allow null destination values. If false, destination objects will be created for deep object graphs.
Allow null destination collections. If true, null source collections result in null destination collections.
Map constructor parameter from member expression
Member type
Member expression
Ignore this member for validation and skip during mapping
Custom mapping action
Source type
Destination type
Implementors can modify both the source and destination objects
Source object
Destination object
Create a map between the and types and execute the map
Source type to use
Destination type to use
Source object to map from
Mapped destination object
Create a map between the object and types and execute the map.
Source type is inferred from the source object .
Destination type to use
Source object to map from
Mapped destination object
Create a map between the and types and execute the map.
Use this method when the source and destination types are not known until runtime.
Source object to map from
Source type to use
Destination type to use
Mapped destination object
Create a map between the and types and execute the map to the existing destination object
Source type to use
Destination type to use
Source object to map from
Destination object to map into
Create a map between the and types and execute the map to the existing destination object.
Use this method when the source and destination types are not known until runtime.
Source object to map from
Source type to use
Destination type to use
Execute a mapping from the source object to a new destination object.
The source type is inferred from the source object.
Destination type to create
Source object to map from
Mapped destination object
Execute a mapping from the source object to a new destination object with supplied mapping options.
Destination type to create
Source object to map from
Mapping options
Mapped destination object
Execute a mapping from the source object to a new destination object.
Source type to use, regardless of the runtime type
Destination type to create
Source object to map from
Mapped destination object
Execute a mapping from the source object to a new destination object with supplied mapping options.
Source type to use
Destination type to create
Source object to map from
Mapping options
Mapped destination object
Execute a mapping from the source object to the existing destination object.
Source type to use
Dsetination type
Source object to map from
Destination object to map into
The mapped destination object, same instance as the object
Execute a mapping from the source object to the existing destination object with supplied mapping options.
Source type to use
Destination type
Source object to map from
Destination object to map into
Mapping options
The mapped destination object, same instance as the object
Execute a mapping from the source object to a new destination object with explicit objects
Source object to map from
Source type to use
Destination type to create
Mapped destination object
Execute a mapping from the source object to a new destination object with explicit objects and supplied mapping options.
Source object to map from
Source type to use
Destination type to create
Mapping options
Mapped destination object
Execute a mapping from the source object to existing destination object with explicit objects
Source object to map from
Destination object to map into
Source type to use
Destination type to use
Mapped destination object, same instance as the object
Execute a mapping from the source object to existing destination object with supplied mapping options and explicit objects
Source object to map from
Destination object to map into
Source type to use
Destination type to use
Mapping options
Mapped destination object, same instance as the object
Configuration provider for performaing maps
Performs mapping based on configuration
Mapping configuration options for non-generic maps
Customize configuration for individual constructor parameter
Constructor parameter name
Options
Itself
Create a type mapping from the destination to the source type, using the destination members as validation.
Itself
Replace the original runtime instance with a new source instance. Useful when ORMs return proxy types with no relationships to runtime types.
The returned source object will be mapped instead of what was supplied in the original source object.
Substitution function
New source object to map.
Construct the destination object using the service locator
Itself
For self-referential types, limit recurse depth
Number of levels to limit to
Itself
Supply a custom instantiation expression for the destination type for LINQ projection
Callback to create the destination type given the source object
Itself
Supply a custom instantiation function for the destination type, based on the entire resolution context
Callback to create the destination type given the current resolution context
Itself
Supply a custom instantiation function for the destination type
Callback to create the destination type given the source object
Itself
Skip member mapping and use a custom expression during LINQ projection
Projection expression
Customize configuration for all members
Callback for member options
Customize configuration for an individual source member
Source member name
Callback for member configuration options
Itself
Assign a profile to the current type map
Profile name
Itself
Skip normal member mapping and convert using a instantiated during mapping
Type converter type
Skip normal member mapping and convert using a instantiated during mapping
Use this method if you need to specify the converter type at runtime
Type converter type
Override the destination type mapping for looking up configuration and instantiation
Customize individual members
Name of the member
Callback for configuring member
Itself
Include this configuration in derived types' maps
Derived source type
Derived destination type
Itself
Ignores all destination properties that have either a private or protected setter, forcing the mapper to respect encapsulation (note: order matters, so place this before explicit configuration of any properties with an inaccessible setter)
Itself
When using ReverseMap, ignores all source properties that have either a private or protected setter, keeping the reverse mapping consistent with the forward mapping (note: destination properties with an inaccessible setter may still be mapped unless IgnoreAllPropertiesWithAnInaccessibleSetter is also used)
Itself
Include the base type map's configuration in this map
Base source type
Base destination type
Execute a custom function to the source and/or destination types before member mapping
Callback for the source/destination types
Itself
Execute a custom mapping action before member mapping
Mapping action type instantiated during mapping
Itself
Execute a custom function to the source and/or destination types after member mapping
Callback for the source/destination types
Itself
Execute a custom mapping action after member mapping
Mapping action type instantiated during mapping
Itself
The current TypeMap being configured
Mapping configuration options
Source type
Destination type
Customize configuration for individual member
Expression to the top-level destination member. This must be a member on the TDestination type
Callback for member options
Itself
Customize configuration for individual member. Used when the name isn't known at compile-time
Destination member name
Callback for member options
Customize configuration for all members
Callback for member options
Ignores all properties that have either a private or protected setter, forcing the mapper to respect encapsulation (note: order matters, so place this before explicit configuration of any properties with an inaccessible setter)
Itself
When using ReverseMap, ignores all properties that have either a private or protected setter, keeping the reverse mapping consistent with the forward mapping (note: properties with an inaccessible setter may still be mapped unless IgnoreAllPropertiesWithAnInaccessibleSetter is also used)
Itself
Include this configuration in derived types' maps
Derived source type
Derived destination type
Itself
Include the base type map's configuration in this map
Base source type
Base destination type
Itself
Include this configuration in derived types' maps
Derived source type
Derived destination type
Itself
Assign a profile to the current type map
Name of the profile
Itself
Skip member mapping and use a custom expression during LINQ projection
Projection expression
Skip member mapping and use a custom function to convert to the destination type
Callback to convert from source type to destination type
Skip member mapping and use a custom function to convert to the destination type
Callback to convert from source type to destination type
Skip member mapping and use a custom function to convert to the destination type
Callback to convert from source type to destination type
Skip member mapping and use a custom type converter instance to convert to the destination type
Type converter instance
Skip member mapping and use a custom type converter instance to convert to the destination type
Type converter type
Execute a custom function to the source and/or destination types before member mapping
Callback for the source/destination types
Itself
Execute a custom mapping action before member mapping
Mapping action type instantiated during mapping
Itself
Execute a custom function to the source and/or destination types after member mapping
Callback for the source/destination types
Itself
Execute a custom mapping action after member mapping
Mapping action type instantiated during mapping
Itself
Supply a custom instantiation function for the destination type
Callback to create the destination type given the source object
Itself
Supply a custom instantiation expression for the destination type for LINQ projection
Callback to create the destination type given the source object
Itself
Supply a custom instantiation function for the destination type, based on the entire resolution context
Callback to create the destination type given the current resolution context
Itself
Override the destination type mapping for looking up configuration and instantiation
Destination type to use
For self-referential types, limit recurse depth
Number of levels to limit to
Itself
Construct the destination object using the service locator
Itself
Create a type mapping from the destination to the source type, using the members as validation
Itself
Customize configuration for an individual source member
Expression to source member. Must be a member of the type
Callback for member configuration options
Itself
Customize configuration for an individual source member. Member name not known until runtime
Expression to source member. Must be a member of the type
Callback for member configuration options
Itself
Replace the original runtime instance with a new source instance. Useful when ORMs return proxy types with no relationships to runtime types.
The returned source object will be mapped instead of what was supplied in the original source object.
Substitution function
New source object to map.
Customize configuration for individual constructor parameter
Constructor parameter name
Options
Itself
The current TypeMap being configured
Options for a single map operation
Construct services using this callback. Use this for child/nested containers
Add context items to be accessed at map time inside an or
Disable the cache used to re-use destination instances based on equality
Execute a custom function to the source and/or destination types before member mapping
Callback for the source/destination types
Execute a custom function to the source and/or destination types after member mapping
Callback for the source/destination types
Execute a custom function to the source and/or destination types before member mapping
Callback for the source/destination types
Execute a custom function to the source and/or destination types after member mapping
Callback for the source/destination types
Options for matching source/destination member types
Specify which properties should be mapped.
By default only public properties are mapped.
Specify which fields should be mapped.
By default only public fields are mapped.
Naming convention for source members
Naming convention for destination members
Source member name prefixes to ignore/drop
Source member name postfixes to ignore/drop
Destination member name prefixes to ignore/drop
Destination member naem prefixes to ignore/drop
Source/destination member name replacers
Source/destination member aliases
Allow mapping to constructors that accept arguments
Source extension methods included for search
Member configuration options
Source type for this member
Substitute a custom value when the source member resolves as null
Value to use
Resolve destination member using a custom value resolver
Value resolver type
Value resolver configuration options
Resolve destination member using a custom value resolver. Used when the value resolver is not known at compile-time
Value resolver type
Value resolver configuration options
Resolve destination member using a custom value resolver instance
Value resolver instance to use
Resolution expression
Resolve destination member using a custom value resolver callback. Used instead of MapFrom when not simply redirecting a source member
This method cannot be used in conjunction with LINQ query projection
Callback function to resolve against source type
Resolve destination member using a custom value resolver callback. Used instead of MapFrom when not simply redirecting a source member
Access both the source object and current resolution context for additional mapping, context items and parent objects
This method cannot be used in conjunction with LINQ query projection
Callback function to resolve against source type
Resolve destination member using a custom value resolver callback. Used instead of MapFrom when not simply redirecting a source member
Access both the source object and current resolution context for additional mapping, context items and parent objects
This method cannot be used in conjunction with LINQ query projection
Callback function to resolve against source type
Specify the source member to map from. Can only reference a member on the type
This method can be used in mapping to LINQ query projections, while ResolveUsing cannot.
Any null reference exceptions in this expression will be ignored (similar to flattening behavior)
Member type of the source member to use
Expression referencing the source member to map against
Specify the source member to map from. Can only reference a member on the type
This method can be used in mapping to LINQ query projections, while ResolveUsing cannot.
Any null reference exceptions in this expression will be ignored (similar to flattening behavior)
Member type of the source member to use
Propertyname referencing the source member to map against
Ignore this member for configuration validation and skip during mapping
Supply a custom mapping order instead of what the .NET runtime returns
Mapping order value
Use the destination value instead of mapping from the source value or creating a new instance
Do not use the destination value instead of mapping from the source value or creating a new instance
Use a custom value
Value type
Value to use
Use a custom value
Value to use
Conditionally map this member
Condition to evaluate using the source object
Conditionally map this member
Condition to evaluate using the current resolution context
Conditionally map this member, evaluated before accessing the source value
Condition to evaluate using the source object
Conditionally map this member, evaluated before accessing the source value
Condition to evaluate using the current resolution context
Ignore this member for LINQ projections unless explicitly expanded during projection
Configuration options for an individual member
Map from a specific source member
Source member to map from
Defines a naming convention strategy
Regular expression on how to tokenize a member
Mapping execution strategy, as a chain of responsibility
Performs a map
Resolution context
Mapped object
When true, the mapping engine will use this mapper as the strategy
Resolution context
Is match
Contains profile-specific configuration
Source extension methods included for search
Specify which properties should be mapped.
By default only public properties are mapped.e
Specify which fields should be mapped.
By default only public fields are mapped.
Configuration for profile-specific maps
Disable constructor mapping. Use this if you don't intend to have AutoMapper try to map to constructors
Creates a mapping configuration from the type to the type
Source type
Destination type
Mapping expression for more configuration options
Creates a mapping configuration from the type to the type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Member list to validate
Mapping expression for more configuration options
Create a mapping configuration from the source type to the destination type.
Use this method when the source and destination type are known at runtime and not compile time.
Source type
Destination type
Mapping expression for more configuration options
Creates a mapping configuration from the source type to the destination type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Member list to validate
Mapping expression for more configuration options
Clear the list of recognized prefixes.
Recognize a list of prefixes to be removed from source member names when matching
List of prefixes
Recognize a list of postfixes to be removed from source member names when matching
List of postfixes
Provide an alias for a member name when matching source member names
Original member name
Alias to match against
Provide a new value for a part of a members name
Original member value
New member value
Recognize a list of prefixes to be removed from destination member names when matching
List of prefixes
Recognize a list of postfixes to be removed from destination member names when matching
List of postfixes
Add a property name to globally ignore. Matches against the beginning of the property names.
Property name to match against
Allow null destination values. If false, destination objects will be created for deep object graphs. Default true.
Allow null destination collections. If true, null source collections result in null destination collections. Default false.
Naming convention for source members
Naming convention for destination members
Create missing type maps during mapping, if necessary
Specify common configuration for all type maps.
configuration callback
Custom resolver options
Source type
Use the specified member as the input to the resolver instead of the root object
Expression for the source member
Custom resolver options
Use the supplied member as the input to the resolver instead of the root source object
Property name to use
Custom resolver options
Source type
Construct the value resolver with the supplied constructor function
Value resolver constructor function
Itself
Custom resolver options
Source type
Value resolver type
Use the specified member as the input to the resolver instead of the root object
Expression for the source member
Itself
Use the specified member as the input to the resolver instead of the root object
Name of the source member
Itself
Construct the value resolver with the supplied constructor function
Value resolver constructor function
Itself
Custom resolver options
Construct the value resolver using supplied constructor function
Value resolver constructor function
Itself
Source member configuration options
Ignore this member for configuration validation and skip during mapping
Converts source type to destination type instead of normal member mapping
Source type
Destination type
Performs conversion from source to destination type
Resolution context
Destination object
Extension point to provide custom resolution for a destination value
Implementors use source resolution result to provide a destination resolution result.
Use the class for a type-safe version.
Source resolution result
Result, typically build from the source resolution result
Main entry point for AutoMapper, for both creating maps and performing maps.
When set, destination can have null values. Defaults to true.
This does not affect simple types, only complex ones.
Execute a mapping from the source object to a new destination object.
The source type is inferred from the source object.
Destination type to create
Source object to map from
Mapped destination object
Execute a mapping from the source object to a new destination object with supplied mapping options.
Destination type to create
Source object to map from
Mapping options
Mapped destination object
Execute a mapping from the source object to a new destination object.
Source type to use, regardless of the runtime type
Destination type to create
Source object to map from
Mapped destination object
Execute a mapping from the source object to the existing destination object.
Source type to use
Dsetination type
Source object to map from
Destination object to map into
The mapped destination object, same instance as the object
Execute a mapping from the source object to the existing destination object with supplied mapping options.
Source type to use
Destination type
Source object to map from
Destination object to map into
Mapping options
The mapped destination object, same instance as the object
Execute a mapping from the source object to a new destination object with supplied mapping options.
Source type to use
Destination type to create
Source object to map from
Mapping options
Mapped destination object
Execute a mapping from the source object to a new destination object with explicit objects
Source object to map from
Source type to use
Destination type to create
Mapped destination object
Execute a mapping from the source object to a new destination object with explicit objects and supplied mapping options.
Source object to map from
Source type to use
Destination type to create
Mapping options
Mapped destination object
Execute a mapping from the source object to existing destination object with explicit objects
Source object to map from
Destination object to map into
Source type to use
Destination type to use
Mapped destination object, same instance as the object
Execute a mapping from the source object to existing destination object with supplied mapping options and explicit objects
Source object to map from
Destination object to map into
Source type to use
Destination type to use
Mapping options
Mapped destination object, same instance as the object
Create a map between the and types and execute the map
Source type to use
Destination type to use
Source object to map from
Mapped destination object
Create a map between the and types and execute the map to the existing destination object
Source type to use
Destination type to use
Source object to map from
Destination object to map into
Create a map between the object and types and execute the map.
Source type is inferred from the source object .
Destination type to use
Source object to map from
Mapped destination object
Create a map between the and types and execute the map.
Use this method when the source and destination types are not known until runtime.
Source object to map from
Source type to use
Destination type to use
Mapped destination object
Create a map between the and types and execute the map to the existing destination object.
Use this method when the source and destination types are not known until runtime.
Source object to map from
Source type to use
Destination type to use
Initializes the mapper with the supplied configuration. Runtime optimization complete after this method is called.
This is the preferred means to configure AutoMapper.
Initialization callback
Creates a mapping configuration from the type to the type
Source type
Destination type
Mapping expression for more configuration options
Creates a mapping configuration from the type to the type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Member list to validate
Mapping expression for more configuration options
Create a mapping configuration from the source type to the destination type.
Use this method when the source and destination type are known at runtime and not compile time.
Source type
Destination type
Mapping expression for more configuration options
Creates a mapping configuration from the source type to the destination type.
Specify the member list to validate against during configuration validation.
Source type
Destination type
Member list to validate
Mapping expression for more configuration options
Create a named profile for grouped mapping configuration
Profile name
Profile configuration options
Create a named profile for grouped mapping configuration, and configure the profile
Profile name
Profile configuration callback
Add an existing profile
Profile to add
Add an existing profile type. Profile will be instantiated and added to the configuration.
Profile type
Find the for the configured source and destination type
Configured source type
Configured destination type
Type map configuration
Find the for the configured source and destination type
Configured source type
Configured destination type
Type map configuration
Get all configured type maps created
All configured type maps
Dry run all configured type maps and throw for each problem
Dry run single type map
Type map to check
Dry run all type maps in given profile
Profile name of type maps to test
Dry run all type maps in given profile
Profile type
Clear out all existing configuration
Mapping engine used to perform mappings
Store for all configuration
Globally ignore all members starting with a prefix
Prefix of members to ignore. Call this before all other maps created.
Member list to check for configuration validation
Check that all destination members are mapped
Check that all source members are mapped
Provides a named configuration for maps. Naming conventions become scoped per profile.
Override this method in a derived class and call the CreateMap method to associate that map with this profile.
Avoid calling the class from this method.
Context information regarding resolution of a destination value
Mapping operation options
Current type map
Current property map
Initial source type
Initial destination type
Current source type
Current attempted destination type
Index of current collection mapping
Source value
Destination value
Parent resolution context
Instance cache for resolving circular references
Current mapping engine
Current configuration
Source and destination type pair
Represents the result of resolving a value
Create a resolution result based on source values of a resolution context
Resolution context
Resultant value
Type of value resolved
Type of member, in case the value is null
Context for resolving this value
Directs mappers to ignore this value
Create a new resolution result representing ignoring the value
New resolution result based on this context with ignored value
Create a new resolution result representing the value provided
Resolved value
Resolution result containing resolved value
Constructs a new resolution result based on the context of this value result
Value resolved
Type of value as reference in case value is null
New resolutino result
Contains member configuration relating to source members
Generic-friendly implementation of
Source type
Destination type
When overridden in a base class, this method is provided the casted source object extracted from the
Source object
Destination object
Contains cached reflection information for easy retrieval
Main configuration object holding all mapping configuration for a source and destination type
Type-safe implementation of
Source type
Destination type
Implementors override this method to resolve the destination value based on the provided source value
Source value
Destination
if targetType is oldType, method will return newType
if targetType is not oldType, method will return targetType
if targetType is generic type with oldType arguments, method will replace all oldType arguments on newType
Extension point for modifying list of object mappers
Reset mapper registry to built-in values
Instantiates objects
Extension point for mappers matching based on types configured by CreateMap
Queryable extensions for AutoMapper
Maps a queryable expression of a source type to a queryable expression of a destination type
Source type
Destination type
Source queryable
Destination queryable
Mapped destination queryable
Maps a queryable expression of a source type to a queryable expression of a destination type
Source type
Destination type
Source queryable
Destination queryable
Mapped destination queryable
Extension method to project from a queryable using the provided mapping engine
Projections are only calculated once and cached
Destination type
Queryable source
Optional parameter object for parameterized mapping expressions
Explicit members to expand
Expression to project into
Extension method to project from a queryable using the provided mapping engine
Projections are only calculated once and cached
Destination type
Queryable source
Mapper configuration
Optional parameter object for parameterized mapping expressions
Explicit members to expand
Expression to project into
Extension method to project from a queryable using the provided mapping engine
Projections are only calculated once and cached
Destination type
Queryable source
Mapper configuration
Explicit members to expand
Expression to project into
Extension method to project from a queryable using the provided mapping engine
Projections are only calculated once and cached
Destination type
Queryable source
Explicit members to expand
Expression to project into
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Queryable source
Mapper configuration
Optional parameter object for parameterized mapping expressions
Explicit members to expand
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Queryable source
Mapper configuration
Optional parameter object for parameterized mapping expressions
Explicit members to expand
Queryable result, use queryable extension methods to project and execute result
Continuation to execute projection
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Optional parameter object for parameterized mapping expressions
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Optional parameter object for parameterized mapping expressions
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Optional parameter object for parameterized mapping expressions
Explicit members to expand
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
Parameters for parameterized mapping expressions
Explicit members to expand
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
>Explicit members to expand
Optional parameter object for parameterized mapping expressions
Queryable result, use queryable extension methods to project and execute result
Projects the source type to the destination type given the mapping configuration
Destination type to map to
>Explicit members to expand
Parameters for parameterized mapping expressions
Queryable result, use queryable extension methods to project and execute result