Class MapperOptions
Settings that apply to every map unless a single map overrides them.
public sealed class MapperOptions
- Inheritance
-
MapperOptions
- Inherited Members
Properties
- AllowNullCollections
Gets a value indicating whether a null source collection maps to null instead of an empty one.
- AllowNullDestinationValues
Gets a value indicating whether a member whose source resolves to null is left null.
- Defaults
Gets the settings used when nothing is configured.
- DestinationMemberNamingConvention
Gets how the destination spells its member names.
- DestinationPostfixes
Gets the destination member name suffixes stripped before matching, such as
Dto.
- DestinationPrefixes
Gets the destination member name prefixes stripped before matching.
- EnumMapping
Gets how enum values are translated.
- IncludeFields
Gets a value indicating whether public fields are considered alongside properties.
- IncludeSourceMethods
Gets a value indicating whether parameterless methods are considered as source members.
- MaxFlatteningDepth
Gets how many levels the flattening convention walks when looking for a source, so that
CustomerAddressCitycan resolve toCustomer.Address.City.
- MemberListValidation
Gets which side must be fully covered for a map to validate.
- NameComparison
Gets how member names are compared when matching by convention.
- NameStringComparison
Gets the string comparison implied by NameComparison.
- ReadingThroughAMemberUsesIt
Whether reading through a member counts as using it, when validating against the source member list. On by default.
- RecursionLimit
Gets how many levels deep a map that can reach itself may recurse before the operation fails with RecursionLimitException.
- SourceMemberNamingConvention
Gets how the source spells its member names.
- SourcePostfixes
Gets the source member name suffixes stripped before matching.
- SourcePrefixes
Gets the source member name prefixes stripped before matching, such as
Get.
- ValidateOnBuild
Gets a value indicating whether the configuration is validated when it is built. Off by default, matching AutoMapper: call
AssertIsValidwhen you want the check.