Any way to set the condition, If source object is null, the target should also be set as null? #1163
Replies: 1 comment 2 replies
-
Can you provide a little more context? Are these classes / the mapper definition in a nullable context? How do you expect the generated code to look like? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any option to set the condition, if the source is null, set the target is null. I have tried AllowNullPropertyAssignment, but it is for properties inside source class. I want a condition to be placed on source class itself for e.g.
In the above example, if the A object is null, how to handle this scenario, anyone can help out?
Beta Was this translation helpful? Give feedback.
All reactions