コード例 #1
0
 public static IMapper GetIMapper()
 {
     if (provider == null)
     {
         provider = new AutoMapperProvider();
     }
     return(provider.mapper);
 }
コード例 #2
0
        private ApplicationProvider()
        {
            IMapper mapper = AutoMapperProvider.GetIMapper();

            ApplicationContext context = new ApplicationContext();

            unitOfWork    = new UnitOfWork(context);
            clientService = new ClientServiceProxy(mapper, unitOfWork);
        }