I’m using AutoMapper
in an ASP.NET MVC
application. I was told that I should move the AutoMapper.CreateMap
elsewhere as they have a lot of overhead. I’m not too sure how to design my application to put these calls in just 1 place.
I have a web layer, service layer and a data layer. Each a project of its own. I use Ninject
to DI everything. I’ll utilize AutoMapper
in both web and service layers.
So what are your setup for AutoMapper
‘s CreateMap? Where do you put it? How do you call it?