Message of 'AutoMapperMappingException' should contain concrete/runtime type name #3657
Der-Kraken
started this conversation in
NA
Replies: 1 comment 1 reply
-
Try the MyGet build. |
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.
-
If I map but missing a configuration in profile then the AutoMapperMappingException is thrown. The output contains the name of source and target type which is a good thing. But the type name is only the build-time type not the runtime one. See my example below:
Current Message of 'AutoMapperMappingException'
Proposed Message of 'AutoMapperMappingException'
Why I propose that? Because If I miss a mapping then I miss a concrete mapping. We do not map abstractions. If I'm missing something then maybee the error message can contain both.
Atm. I must reproduce the runtime scenario and debug it to identify the concrete type. If the message would contain it then I must only add a new mapping configuration.
Beta Was this translation helpful? Give feedback.
All reactions