private static bool NamesAreEqual(DbObject object1, DbObject object2) { try { return(object1.Name.ToLower().Equals(object2.Name.ToLower())); } catch { return(false); } }
private static bool ParentsAreEqual(DbObject object1, DbObject object2) { if (object1.Parent == null ^ object2.Parent == null) { return(false); } if (object1.Parent == null && object2.Parent == null) { return(true); } try { return(object1.Parent.Equals(object2.Parent)); } catch { return(false); } }
public abstract bool IsAltered(DbObject @object, out string comment);