I want to map from a record class to the same record class but ignore null values. I tried using the method found here
Can anyone advise what I should do?
CodePudding user response:
Change your code to this:
var ot = mapper.Map(thing1, thing2);
so you will define source and target objects, and they will be merged.