Exemplo n.º 1
0
        public int Compare(AssociationPropertyIdentity x, AssociationPropertyIdentity y)
        {
            var compVal = SortedListAllowDupes <DatabaseColumn> .CompareListContents(x.PrincipalColumns, y.PrincipalColumns);

            if (compVal == 0)
            {
                // left columns are equal, compare right columsn
                compVal = SortedListAllowDupes <DatabaseColumn> .CompareListContents(x.DependentColumns, y.DependentColumns);
            }
            return(compVal);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            var that = obj as AssociationPropertyIdentity;

            if (that == null)
            {
                return(false);
            }

            if ((SortedListAllowDupes <DatabaseColumn> .CompareListContents(PrincipalColumns, that.PrincipalColumns) == 0) &&
                (SortedListAllowDupes <DatabaseColumn> .CompareListContents(DependentColumns, that.DependentColumns) == 0))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
 public int Compare(ReferentialConstraintIdentity x, ReferentialConstraintIdentity y)
 {
     return(SortedListAllowDupes <AssociationPropertyIdentity> .CompareListContents(x.PropertyIdentities, y.PropertyIdentities));
 }