Exemplo n.º 1
0
 protected void Application_Start()
 {
     Database.SetInitializer <FoodOrderingSystemDBContext>(new FoodOrderingSystemDBContextSeeder());
     using (var db = new FoodOrderingSystemDBContext()){
         db.Database.Initialize(true);
     }
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
 public FoodOrderingSystemXmlRepository()
 {
     _dBContext = new FoodOrderingSystemDBContext();
 }