protected void Application_Start()
 {
     var db = new Models.DBContext();
     if (!db.Database.Exists())
         db.Provinces.ToList();
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
 }
Esempio n. 2
0
        protected void Application_Start()
        {
            var db = new Models.DBContext();

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