コード例 #1
0
 protected void Application_Start()
 {
     var db = new Models.DBContext();
     if (!db.Database.Exists())
         db.Provinces.ToList();
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
 }
コード例 #2
0
        protected void Application_Start()
        {
            var db = new Models.DBContext();

            if (!db.Database.Exists())
            {
                db.Provinces.ToList();
            }
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }