-
-
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
Projecting Enum to Enum in another assembly throws an exception #583
Conversation
Projecting an enum to an enum works, however if you project an enum from one assembly to an enum in another assembly an exception is thrown:
|
Well that's odd, thanks for the failing test! |
Digging a little deeper, this is a bit harder it turns out. You have to convert enums at the LINQ level. How would you accomplish this without AutoMapper? Can you send me a LINQ Select projection not using AutoMapper?
|
Casting from one enum to another would work (by value). But there is a question: does EF support Enums? So the possible solutions:
|
Also failed ProjectTo with when models contains Enum -> byte |
@yyjdelete Try the MyGet build. |
I don't think this is worth fixing. One can work around it by creating a map for the enums and casting in ProjectUsing (or whatever works). |
@lbargaoanu
Maybe fixed in new ci, I will check later |
AutoMapperMappingException.Message is work well again in |
@yyjdelete Yes, I saw that and fixed it yesterday. |
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. |
No description provided.