I’m using Mapper.DynamicMap() inside a generic method and would like to, without using .CreateMap(), ignore some any source values that are null. Is this even possible?
I’m using Mapper.DynamicMap() inside a generic method and would like to, without using .CreateMap()
Share
If you want all source properties with null values to be ignored you could use:
Otherwise, you can do something similar for each member. This will get quit tedious if there are a large number of properties.