Esempio n. 1
0
        protected void Application_Start()
        {
            CoreContext.Initialize(true);

            //set dependency resolver
            var dependencyResolver = new CoreDependencyResolver();

            DependencyResolver.SetResolver(dependencyResolver);

            AreaRegistration.RegisterAllAreas();

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            //Database.SetInitializer<Inspiration.DataAccess.ManageContext>(
            //    new DropCreateDatabaseAlways<Inspiration.DataAccess.ManageContext>());
        }