Replies: 1 comment 4 replies
-
You either use the default flattening or |
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.
-
Version: 12.0.0
Expected behavior
Expecting the source member type to match the mapped property type.
Actual behavior
The source member type returns the source property's parent type (in one case). It seems related to mapping by convention which seems to be obsolete (trying to map by convention throws the "Unmapped members were found"
AutoMapperConfigurationException
)Steps to reproduce
The workaround is to use
propertyMap.SourceMembers.Last()
Beta Was this translation helpful? Give feedback.
All reactions