Mapping a source to Destination when Source field is null , I need to create the field instead of keeping a null #3901
Unanswered
KarthickPari
asked this question in
Q&A
Replies: 1 comment
-
|
You can use And the BMapper class is Here ADto and BDto classes are This creates the mapper implementation as I hope this helps |
Beta Was this translation helpful? Give feedback.
0 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.
-
Scenario is
When mapping if source class A field b is null, instead of applying to target null I need to create a new object. This can be of nested fields. so need a common way to handle this.
Beta Was this translation helpful? Give feedback.
All reactions