Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IncludeBase must come before base overrides #683

Closed
strawd opened this issue Feb 27, 2015 · 2 comments
Closed

IncludeBase must come before base overrides #683

strawd opened this issue Feb 27, 2015 · 2 comments
Milestone

Comments

@strawd
Copy link

strawd commented Feb 27, 2015

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.

@jbogard jbogard added this to the 4.0.0 milestone Apr 24, 2015
@jbogard
Copy link
Member

jbogard commented Apr 24, 2015

Yeah....this is getting addressed in 4.0

@lock
Copy link

lock bot commented May 8, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants