Пример #1
0
        public void MigrationAddRemoveColumns()
        {
            Migration m = new MigrationTest003();

            m.Migrate("Northwind", Migration.MigrationDirection.Up);

            DataService.ClearSchemaCache("Northwind");
            TableSchema.Table table = DataService.GetSchema("Products", "Northwind");
            Assert.IsNotNull(table.GetColumn("ProductExpiration"));
            Assert.IsNull(table.GetColumn("ProductName"));
        }
Пример #2
0
        public void MigrationAddRemoveColumns()
        {
            Migration m = new MigrationTest003();
            m.Migrate("Northwind", Migration.MigrationDirection.Up);

            DataService.ClearSchemaCache("Northwind");
            TableSchema.Table table = DataService.GetSchema("Products", "Northwind");
            Assert.IsNotNull(table.GetColumn("ProductExpiration"));
            Assert.IsNull(table.GetColumn("ProductName"));
        }