public void Configuration(IAppBuilder app) { Database.SetInitializer(new MigrateDatabaseToLatestVersion<BugTrackerDbContext, BugTrackerDbMigrationConfiguration>()); this.ConfigureAuth(app); var autoMapperConfig = new AutoMapperConfig(); autoMapperConfig.Execute(); }
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); }