예제 #1
0
        public void Configuration(IAppBuilder app)
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<BugTrackerDbContext, BugTrackerDbMigrationConfiguration>());

            this.ConfigureAuth(app);
            var autoMapperConfig = new AutoMapperConfig();
            autoMapperConfig.Execute();
        }
예제 #2
0
        public void Configuration(IAppBuilder app)
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<BugTrackerDbContext, BugTrackerDbMigrationConfiguration>());

            this.ConfigureAuth(app);
            var autoMapperConfig = new AutoMapperConfig();
            autoMapperConfig.Execute();

            app.UseNinjectMiddleware(CreateKernel).UseNinjectWebApi(GlobalConfiguration.Configuration);
        }