AutoMapper Ignore () not working?

I am trying to ignore a property from my type when performing a mapping using AutoMapper. I define the mapping this way:

Mapper.CreateMap<TypeA, TypeA>().ForMember(dest => dest.Id, opt => opt.Ignore()); 

Both source and destination are the same. When I call the Map function, the destination identifier property is still updated. I am using the latest version downloaded from CodePlex.

-1
source share
1 answer

Sorry guys, that was my stupid mistake. Therefore, you should not work at 4 a.m.: (

-4
source

Source: https://habr.com/ru/post/958989/


All Articles