/// <summary> /// Qualifies this object against another one. /// </summary> /// <param name="target">The target.</param> /// <param name="dir">The direction.</param> /// <returns></returns> public Modification qualifyVersus(View target, Direction dir) { Qualifier = Modification.None; Modification mod = FieldCont.qualifyVersus(target.FieldCont, dir); if (Qualifier == Modification.None && mod != Modification.None) { Qualifier = mod; } return(Qualifier); }
/// <summary> /// Qualifies this object against another one. /// </summary> /// <param name="target">The target.</param> /// <param name="dir">The direction.</param> /// <returns></returns> public Modification qualifyVersus(Table target, Direction dir) { Qualifier = Modification.None; //---------------------------------------------------------------- Modification mod = FieldCont.qualifyVersus(target.FieldCont, dir); if (Qualifier == Modification.None && mod != Modification.None) { Qualifier = mod; } //---------------------------------------------------------------- mod = ConstraintCont.qualifyVersus(target.ConstraintCont, dir); if (Qualifier == Modification.None && mod != Modification.None) { Qualifier = mod; } //---------------------------------------------------------------- if (m_DataCont != null && target.DataCont != null) { mod = DataCont.qualifyVersus(target.DataCont, dir); if (Qualifier == Modification.None && mod != Modification.None) { Qualifier = mod; } } //---------------------------------------------------------------- return(Qualifier); }