Automapper expression must resolve to top-level member

You are using : Mapper.CreateMap<Source, Destination>() .ForMember( dest => dest.OutputData.Cars, input => input.MapFrom(i => i.Cars)); This won’t work because you are using 2 level in the dest lambda. With Automapper, you can only map to 1 level. To fix the problem you need to use a single level : Mapper.CreateMap<Source, Destination>() .ForMember( dest => dest.OutputData, … Read more

Automapper 3.0 – This type is not supported on this platform IMapperRegistry

We had the same issue on our build server. MsTest seemed to remove DLLs it deemed unnecessary (note : this claim is only an educated guess). To fix it, add an explicit call to something in AutoMapper.Net4.dll. For instance, with the class ListSourceMapper : var useless = new ListSourceMapper() Adding this to a project which … Read more

Automapper – Does it map lists of objects?

In your AutoMapper Definition: CreateMap<MyStuffDTO, MyStuffViewModel>() .ForMember(dto => dto.MyDate, opt => opt.MapFrom(src => src.LastDate)) .ForMember(dto => dto.MyTime, opt => opt.MapFrom(src => src.LastTime)) .ForMember(dto => dto.Category, opt => opt.MapFrom(src => src.Category)); In code: For Single: var result = Mapper.Map<MyStuffDTO, MyStuffViewModel>(obj); For List: var list = Mapper.Map<IList<MyStuffDTO>, IList<MyStuffViewModel>>(obj);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)