Mapping configuration is not considered and constructor is used instead #3862
JoFrMueller
started this conversation in
NA
Replies: 1 comment 17 replies
-
Things are not mapped twice, that's the rule :) Maybe just disable constructor mapping? There are many similar questions, here and on SO. |
Beta Was this translation helpful? Give feedback.
17 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Source/destination types
The example is a console app that can be used 1:1.
Mapping configuration
Example code contains mapping configuration.
Version:
11.0.0
Expected behavior
Mapping configuration should apply instead of "magic" constructor call.
Actual behavior
The mapping configuration isn't considered at all.
Steps to reproduce
Any further information or guidance on this?
In this example, the error is trivial to spot, but we had it in a more complex mapping configuration and we were desperately wondering what the rules exactly are, that decide if constructor parameter mapping or mapping configuration "wins"...
Beta Was this translation helpful? Give feedback.
All reactions