Trying to automap some objects. Source objects has properties with _ before name, destination objects - have not. Is it possible to implement ONE map creation, that auto
For this you could add a custom mapping to solve this particular case:
Mapper.CreateMap() .ForMember( dest => dest.Id, opt => opt.MapFrom( src => src._Id ) ) .ForMember( dest => dest.Name, opt => opt.MapFrom( src => src._Name ) );