Replies: 1 comment 1 reply
-
Check the execution plan. You configured AM to map |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Source/destination types
Mapping configuration
Version: 11.0.1
Expected behavior
I'd expect Automapper to match members with the same un-altered name first before proceeding to exclude pre/postfixes, so that ProductId of OrderDto gets mapped correctly to ProductId of Order.
Actual behavior
I get an error saying missing mapping for int -> Product, because automapper tries to map Product(Id) to Product instead by removing the postfix.
Beta Was this translation helpful? Give feedback.
All reactions