ProjectTo ArgumentException "Argument types do not match" with dictionaries #3801
DaanWasscher
started this conversation in
NA
Replies: 1 comment 4 replies
-
I don't know what EF provider supports that, but EF6 certainly doesn't. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://gist.github.com/DaanWasscher/6a44c6843c6215f490e6c543108e0424
AutoMapper 10.1.1
net6.0
When the source and destination have a dictionary property for which the values need to be mapped it won't map with ProjectTo.
Calling Map results in a mapped result, all good.
Calling ProjectTo results in an argument exception from AutoMapper.
Beta Was this translation helpful? Give feedback.
All reactions