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

Allow simple MapFrom-s to pass validation #2185

Merged
merged 5 commits into from Jul 5, 2017
Merged

Allow simple MapFrom-s to pass validation #2185

merged 5 commits into from Jul 5, 2017

Conversation

lbargaoanu
Copy link
Member

@lbargaoanu lbargaoanu commented Jul 4, 2017

Fixes #2172. This won't work for more complicated expressions. If you feel it's inconsistent, just close it.

@jbogard
Copy link
Member

jbogard commented Jul 4, 2017

Not following how this fixes the original issue - shouldn't the MapFrom have fixed the configuration problem in the derived map? Or it's because it's looking at source members.

@lbargaoanu
Copy link
Member Author

The mapping works. It's not valid because it validates the source and that extra check that I removed. I guess a more general solution would be to consider mapped all source members referenced in the MapFrom.

@jbogard
Copy link
Member

jbogard commented Jul 5, 2017

Well, let's see if this works for folks. I suspect that most want just the MemberList.None in any case.

@jbogard jbogard merged commit cee13ba into AutoMapper:master Jul 5, 2017
@jbogard jbogard added this to the 6.2.0 milestone Jul 5, 2017
@lbargaoanu lbargaoanu deleted the Validation branch July 5, 2017 12:54
@lock
Copy link

lock bot commented May 6, 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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AssertConfigurationIsValid with MemberList.Source doesn't recognize inherited ForMember mapping
2 participants