private static BudgetDbSetup ConfigureDabatase() { var dbSetup = new BudgetDbSetup(ConnectionString); dbSetup.ConfigureDatabase(); return(dbSetup); }
private static void ConfigureDabatase() { var connectionString = "Server=localhost; Initial Catalog=SpecFlow.AspNetCore2.Specs; Trusted_Connection=True; MultipleActiveResultSets=true"; var dbSetup = new BudgetDbSetup(connectionString); dbSetup.ConfigureDatabase(); }
// 2-3. Create database / apply migrations //---------------------------------------- private BudgetDbSetup ConfigureDabatase() { string connectionString = Options["ConnectionStrings:DefaultConnection"]; var dbSetup = new BudgetDbSetup(connectionString); dbSetup.ConfigureDatabase(migrateDatabase: true); return(dbSetup); }