Exemple #1
0
        protected static DatabaseDefinitions UniqueConstraint_Change_NewColumn_UcName_Dds(SqlEngineVersion version)
        {
            var ddOriginal = new TestDatabaseUniqueConstraint();

            ddOriginal.SetVersions(version.GetTypeMapper());
            ddOriginal.GetTable("Company").Properties.OfType <UniqueConstraint>().First().Name = "UC_1";

            var ddUcChanged = new TestDatabaseUniqueConstraint2();

            ddUcChanged.SetVersions(version.GetTypeMapper());
            ddUcChanged.GetTable("Company").Properties.OfType <UniqueConstraint>().First().Name = "UC_1";

            return(new DatabaseDefinitions(ddOriginal, ddUcChanged, "TestDatabaseUniqueConstraint", "TestDatabaseUniqueConstraint2_Change_NewColumn_UcName_Dds"));
        }