Skip to content

Fix to map members of the generic type definition during expression mapping #4

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

Merged
merged 4 commits into from
Jun 29, 2018

Conversation

BlaiseD
Copy link
Member

@BlaiseD BlaiseD commented Jun 27, 2018

The logic for mapping expressions between members of a generic type definition is different because type maps do not exist.

e.g. mapping an expression with IGrouping<int, User>.Key to IGrouping<int, UserModel>.Key or IGrouping<int, User>.Value to IGrouping<int, UserModel>.Value needed additional handling.

BlaiseD added 4 commits June 5, 2018 15:05
…n mapping.

2) Using VisitUnary and VisitLambda instead of ArgumentMappers .
3) Added temporary fix for MemberAccesses issue in AutoMapper until Automapper isse 2704 gets resolved.
@BlaiseD BlaiseD requested a review from jbogard June 27, 2018 20:57
@BlaiseD
Copy link
Member Author

BlaiseD commented Jun 29, 2018

@jbogard - if you approve can you do a nuget upgrade please?

@jbogard
Copy link
Member

jbogard commented Jun 29, 2018

@BlaiseD you've got merge and tag rights :) all you need to do to update nuget is tag the commit you want to release with a vX.Y.Z format e.g. v1.0.2.

@BlaiseD
Copy link
Member Author

BlaiseD commented Jun 29, 2018

ok - got it. Thank you.

@BlaiseD BlaiseD merged commit b362fb5 into AutoMapper:master Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants