AutoMapper:
Assembly AutoMapper, Version=6.2.1.0, Culture=neutral, PublicKeyToken=be96cd2c38ef1005
UnitConfig.cs
var config = new MapperConfiguration(cfg =>
{
cfg.AddProfile(new CommonMappingProfile());
});
{
cfg.AddProfile(new CommonMappingProfile());
});
var container = new UnityContainer();
container.RegisterInstance(config.CreateMapper());
No comments:
Post a Comment