You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation at https://github.com/AutoMapper/AutoMapper/wiki/Mapping-inheritance specifies that the precedence of resolving properties is:
*Explicit Mapping (using .MapFrom())
*Inherited Explicit Mapping
*Ignore Property Mapping
*Convention Mapping (Properties that are matched via convention)
In practice I have found that the order of the first two items above relies on the application declaring the IncludeBase before specifying explicit mappings in the inheritor type map. Either AutoMapper should be changed to make the order not matter or the documentation should be updated to include this requirement.
The text was updated successfully, but these errors were encountered:
The documentation at https://github.com/AutoMapper/AutoMapper/wiki/Mapping-inheritance specifies that the precedence of resolving properties is:
*Explicit Mapping (using .MapFrom())
*Inherited Explicit Mapping
*Ignore Property Mapping
*Convention Mapping (Properties that are matched via convention)
In practice I have found that the order of the first two items above relies on the application declaring the IncludeBase before specifying explicit mappings in the inheritor type map. Either AutoMapper should be changed to make the order not matter or the documentation should be updated to include this requirement.
The text was updated successfully, but these errors were encountered: