示例#1
0
 private static bool NamesAreEqual(DbObject object1, DbObject object2)
 {
     try
     {
         return(object1.Name.ToLower().Equals(object2.Name.ToLower()));
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
        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);
            }
        }
示例#3
0
 public abstract bool IsAltered(DbObject @object, out string comment);