I think this is a repeated Question but i am unable to resolve it. here is my mapping.
UserProfileVM model = AutoMapper.Mapper.DynamicMap<UserProfileVM>(objUser);
But here AutoMapper
gives warning.
I tried to add MapperConfiguration
, but i have no idea how to use it in DynamicMap<>()
.
var config = new MapperConfiguration(cfg => { cfg.CreateMissingTypeMaps = true; });
Now how to use my config variable for dynamic map?
Or is there any global setting for these issue because i used mapper for many times in my application.