Beispiel #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            Database.SetInitializer(new SlightInitializer());
            SlightContext c = new SlightContext();
            c.Database.Initialize(true);

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }
Beispiel #2
0
 public UserController()
 {
     this.db = new SlightContext();
 }