示例#1
0
 public HouseBusinessLogic(IHouseRepository houseRepository,
                           IHouseMemberRepository houseMemberRepository)
 {
     HouseRepository          = houseRepository;
     HouseMemberRepository    = houseMemberRepository;
     AutoMapperConfigurations = new AutoMapperConfigurations();
 }
示例#2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     AutoMapperConfigurations.RegisterMappings();
     UnityConfig.RegisterComponents();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
示例#3
0
文件: Startup.cs 项目: JAYTAS/Omilos
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 protected override IMapper ConfigureMaps()
 {
     return(AutoMapperConfigurations.RegisterMaps());
 }
示例#4
0
        public static void RegisterAllMappings()
        {
            var mapper = new AutoMapperConfigurations();

            mapper.Execute(Assembly.Load(Constants.DataTransferModelsAssemblyPath));
        }
示例#5
0
 public UserCurrentRequestStatusBusinessLogic(IUserCurrentRequestStatusRepository userCurrentRequestStatusRepository)
 {
     UserCurrentRequestStatusRepository = userCurrentRequestStatusRepository;
     AutoMapperConfigurations           = new AutoMapperConfigurations();
 }