-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ReverseMap and ReplaceMemberName don't work together #832
Comments
This seems to work now. |
@lbargaoanu , thanks. I'm gonna clone your branch to test in my machine also. |
On second thought, it seems that the mapping works but AssertConfigurationIsValid fails with the error you saw :) |
Hum. I didn't try the mapping itself. My first unit test is I created a gist to test the mappings:
Please see it here: https://gist.github.com/brenovieira/41994109029899a7b488 |
@lbargaoanu yep, failing test! Hooray! |
Actually there were two separate issues. It seems to work now. |
Great, @lbargaoanu . I believe it'll fix another 2 "issues" I have, as I'm using profiles and reverseMap (all my mappings are two ways mappings).
What do you think? |
Well, the best way to find out is to try them :). What doesn't work as expected, we will fix. |
Hahaha. Great. |
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. |
Two of my namespaces have classes with the same property, but with two different names, so in namespace1 it is called
UserId
andAccountId
in namespace2.Since I'm actually mapping the classes in both ways, my AutoMapper config is like that:
Message error:
As I have several classes, I wouldn't like to use custom .ForMember() map neither call CreateMap twice instead of ReverseMap().
The same issue happens if
The text was updated successfully, but these errors were encountered: