Pull to refresh
9
Karma
1.5
Rating
Сергей Роговцев @lair

Архитектор

Интегрируем AutoMapper с DI-контейнерами на примере Unity

IT systems testing *.NET *
Recovery mode
TL;DR: пакет для легкой регистрации (и конфигурации) AutoMapper в Unity.

var container = new UnityContainer();
container.RegisterMappingProfile<DataModelToViewModel>();
container.RegisterMapper();

public SomeController(IMappingEngine mapper)
{
	_mapper = mapper;
}

public ViewModel SomeAction()
{
	return _mapper.Map<ViewModel>(dataModel)
}


Предыстория, история и подробности реализации
Total votes 7: ↑7 and ↓0 +7
Views 15K
Comments 9

Information

Rating
946-th
Location
Montreal, Quebec, Канада
Date of birth
Registered
Activity