예제 #1
0
        private static BudgetDbSetup ConfigureDabatase()
        {
            var dbSetup = new BudgetDbSetup(ConnectionString);

            dbSetup.ConfigureDatabase();

            return(dbSetup);
        }
예제 #2
0
        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();
        }
예제 #3
0
        // 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);
        }