I\'m using Mapper.DynamicMap() inside a generic method and would like to, without using .CreateMap(), ignore some any source values that are null.
Mapper.DynamicMap()
.CreateMap()
I solved it with DataMember property in destination type [DataMember(EmitDefaultValue = false)] add this in the destination DTO
[DataMember(EmitDefaultValue = false)]
DTO