Open TimothyMakkison opened 1 year ago
This is expected with the current implementation. The current implementation marks all target properties as mapped, which are part of a target property mapping path. Not sure if we should change that.
IMO this is pretty confusing. You might have a functioning mapping, but by adjusting a child it stops working. Do automapper/mapster do this?
On a second thought we should probably improve this and map such members unless they are explicitly ignored.
👍 think I have the fix already made, see if I can find it
Is your feature request related to a problem? Please describe. Using MapProperty to assign a nested value will prevent the root member being auto resolved from the source.
Describe the solution you'd like
ObjectMemberMappingBodyBuilder.BuildMappingBody
should try to resolve the member if its configs don't map to the target.I'm not sure how error handling should occur. i.e. If a specified root assignment is invalid, should a resolution be attempted?