Example #1
0
 public bool HasSameProperties(Constraint other, CompareConfig compareConfig)
 {
     return IsSimilar(other)
            && (Name == other.Name || compareConfig.IgnoreConstraintsNameMismatch)
            && Clustered == other.Clustered
            && Unique == other.Unique;
 }
Example #2
0
 public bool IsSimilar(Constraint other)
 {
     return HasSameColumns(other)
            && HasSameIncludedColumns(other)
            && Table.Name == other.Table.Name
            && Table.Owner == other.Table.Owner
            && Type == other.Type;
 }
Example #3
0
 private bool HasSameIncludedColumns(Constraint other)
 {
     return this.IncludedColumns.Join(other.IncludedColumns, x => x, y => y, (x, y) => x == y).All(equal => equal);
 }