Пример #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);
        }