Home > Software design >  MapAutomapper ignore Null values
MapAutomapper ignore Null values

Time:07-27

I want to map from a record class to the same record class but ignore null values. I tried using the method found here enter image description 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.

  • Related