Any main map configuration overrides IncludeMembers configuration for a given member #3594
Replies: 3 comments 1 reply
-
|
Actually, you don't need to use ForAllMembers() you will get the same issue if you do ForMember() on a property from the Included member. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, merging configuration between the main map and the included map is kind of messy. Not allowing it seems best. For a given member, you either configure everything in the main map, or in the included map. |
Beta Was this translation helpful? Give feedback.
-
|
I was using:
In order to patch objects and avoid mapping |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When using
IncludeMembersandForAllMemberswith Condition/Precondition, the condition code is not being called.Source/destination types
Mapping configuration
Version: 10.1.1
Expected behavior
IncludeMembersandForAllMemberswith Condition/Precondition should work together. For each property/member from instance + added members fromIncludeMembersconditional mapping should be called.Actual behavior
When specifying both
IncludeMembersandForAllMembersCondition/Precondition code is not being called.Steps to reproduce
Beta Was this translation helpful? Give feedback.
All reactions