public static void CreateAutomaticMapping <TSrc, TDest>(this IMapperConfigurationExpression cfg) { cfg.CreateMap <TSrc, TDest>(); cfg.CreateMap <TDest, TSrc>(); cfg.CreateMissingTypeMaps = true; cfg.IgnoreUnmapped(); }
public void CreateMapping(IMapperConfigurationExpression cfg) { cfg.CreateMap <GoalsVM, Goals>() .ForMember(d => d.GoalRemarks, opt => opt.MapFrom(s => s.GoalRemarksVM)); cfg.IgnoreUnmapped(); }
public void CreateMapping(IMapperConfigurationExpression cfg) { cfg.CreateMap <PersonVM, Person>(); cfg.IgnoreUnmapped(); }