コード例 #1
0
ファイル: Global.asax.cs プロジェクト: ashfaqadib/fastfood
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            Bootstrapper.Initialise();

            ValueProviderFactories.Factories.Add(new JsonValueProviderFactory());

            //MyDbContext dbContext = MyDbContext.GetDbContext(); dbContext.AddToDb();
        }
コード例 #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     Bootstrapper.Initialise();
 }