コード例 #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            dbContext = new GallerySystemServicesContext();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
コード例 #2
0
 public PictureManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
コード例 #3
0
 public AlbumManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
コード例 #4
0
 public CategoryManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }
コード例 #5
0
 public UserManager()
 {
     this.dbContext = WebApiApplication.dbContext;
 }