You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #2051 we added support for conditional mappings. Currently this only works for properties. However, it would be good to be able to apply the same logic for the source parameters.
where isCarPresent is a method on the CarMapper. It can be a method that is available anywhere in the same discovery mechanism we have for the property conditional methods.
I believe that this issue is not super difficult to implement and would appreciate if someone from the community is interested in stepping up.
With #2051 we added support for conditional mappings. Currently this only works for properties. However, it would be good to be able to apply the same logic for the source parameters.
e.g. If we have the following mapper
We currently generated something like:
It would be good to be able to define a custom method that would tell is if the car should be mapped or not:
e.g. we could generate something like
where
isCarPresentis a method on theCarMapper. It can be a method that is available anywhere in the same discovery mechanism we have for the property conditional methods.I believe that this issue is not super difficult to implement and would appreciate if someone from the community is interested in stepping up.