Ejemplo n.º 1
0
        private void MigrateDatabase()
        {
            string connectionString      = ConfigurationManager.ConnectionStrings["SogetiSkills"].ConnectionString;
            SqlDatabaseMigrator migrator = new SqlDatabaseMigrator(connectionString, typeof(UserManager).Assembly, "SogetiSkills.Core.DatabaseMigrations");

            migrator.Migrate();
        }
Ejemplo n.º 2
0
        static DbUnitTestBase()
        {
            string connectionString      = ConfigurationManager.ConnectionStrings["SogetiSkills"].ConnectionString;
            SqlDatabaseMigrator migrator = new SqlDatabaseMigrator(connectionString, typeof(UserManager).Assembly, "SogetiSkills.Core.DatabaseMigrations");

            migrator.Migrate();

            TestDatabase = Database.Open("SogetiSkills");
            EmptyDatabase();
        }