protected void Application_Start()
 {
     var db = new Models.DBContext();
     if (!db.Database.Exists())
         db.Provinces.ToList();
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
 }
Ejemplo 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);
        }