コード例 #1
0
        public void Assert(Action <T, SqlConnection> fn)
        {
            using (var harness = new DbMigratorHarness <SchoolDbConfiguration>())
            {
                _sourceMigration.Apply(harness);

                T arrangement = harness.UseConnection(_fn);

                harness.TargetMigration(_migrationName);

                harness.UseConnection(conn => fn(arrangement, conn));
            }
        }
コード例 #2
0
 public void Apply <T>(DbMigratorHarness <T> harness)
     where T : DbMigrationsConfiguration, new()
 {
     harness.TargetMigration(_migrationName);
 }