Class TypeMapDefinition
The complete description of how one source type is mapped to one destination type. Instances are immutable once the configuration is built.
public sealed class TypeMapDefinition
- Inheritance
-
TypeMapDefinition
- Inherited Members
Constructors
- TypeMapDefinition(TypeMapKey)
Creates a definition for the given type pair.
Properties
- AfterMapActions
Gets the actions run after the members are assigned.
- BaseMaps
Gets the base type pairs whose configuration this map inherits.
- BeforeMapActions
Gets the actions run before the members are assigned.
- ConstructUsing
Gets the factory used to construct the destination, held as object.
- Constructor
Gets the constructor used to build the destination, or null when it is created through a parameterless constructor and populated member by member.
- ConstructorParameters
Gets the destination constructor parameters, when the destination is built through one.
- DerivedMaps
Gets the maps for derived type pairs handled polymorphically by this one.
- DestinationType
Gets the destination type.
- HasTypeConverter
Gets a value indicating whether this definition replaces member mapping with a converter, in which case the compiler emits a single call instead of member assignments.
- IncludedMembers
Gets the paths to source members whose own maps to this destination fill in whatever this map leaves unresolved, in the order they were declared.
- IsReverse
Gets a value indicating whether this map was generated by reversing another one.
- Key
Gets the type pair this definition describes.
- MemberListValidation
Gets which side must be fully covered for this map to validate.
- Members
Gets the destination members, in the order they were declared.
- PreserveReferences
Gets a value indicating whether repeated references are tracked so cycles terminate.
- SourceType
Gets the source type.
- TypeConverterType
Gets the converter that replaces member-by-member mapping for this pair entirely. When set, every member definition is ignored.
- UnvalidatedSourceMembers
Source members that
ForSourceMember(..., o => o.DoNotValidate())excused from validation against the source list.
Methods
- FindMember(string)
Finds the definition for a destination member by name.
- ToString()
Returns a string that represents the current object.