How to ignore matching if the property type is different from the same property name? By default, it throws an error.
Mapper.CreateMap<EntityAttribute, LeadManagementService.LeadEntityAttribute>(); Model = Mapper.Map<EntityAttribute, LeadManagementService.LeadEntityAttribute>(EntityAttribute);
I know a way to specify a property name to ignore, but that is not what I want.
.ForMember(d=>d.Field, m=>m.Ignore());
Because in the future I can add new properties. Therefore, I need to ignore matching for all properties with different data types.
source share