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: passing parameter to Map method

You can’t do exactly what you want, but you can get pretty close by specifying mapping options when you call Map. Ignore the property in your config: cfg.CreateMap<Message, MessageDto>() .ForMember(dest => dest.Timestamp, opt => opt.Ignore()); Then pass in options when you call your map: int someValue = 5; var dto = Mapper.Map<Message, MessageDto>(message, opt => … Read more

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