Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public UserController()
 {
     this.db = new SlightContext();
 }