When a child mapping uses .Inherits<TSource, TDestination>(), ignored fields defined in the parent config cannot be re-mapped in the child config.
Parent mapping:
config.NewConfig<Base, BaseDTO>()
.Ignore(dest => dest.LastModified);
Child mapping:
config.NewConfig<Advanced, AdvancedDTO>()
.Inherits<Base, BaseDTO>()
.Map(dest => dest.LastModified, src => src.LastModified);
Expected: AdvancedDTO.LastModified is mapped from Advanced.LastModified.
Actual: AdvancedDTO.LastModified is ignored, inherited behavior overrides the child .Map() call.
Proposed fix: Add an .Unignore(dest => dest.LastModified) method, or ensure that an explicit .Map() on the child config takes precedence over a parent .Ignore().
When a child mapping uses
.Inherits<TSource, TDestination>(), ignored fields defined in the parent config cannot be re-mapped in the child config.Parent mapping:
Child mapping:
Expected:
AdvancedDTO.LastModifiedis mapped fromAdvanced.LastModified.Actual:
AdvancedDTO.LastModifiedis ignored, inherited behavior overrides the child.Map()call.Proposed fix: Add an
.Unignore(dest => dest.LastModified)method, or ensure that an explicit.Map()on the child config takes precedence over a parent.Ignore().