Exemplo n.º 1
0
        /// <summary>
        /// Reserved for internal use.
        /// </summary>
        public override bool Equals(BulkEntityIdentifier other)
        {
            var otherIdentifier = other as BulkTargetIdentifier;

            if (otherIdentifier == null)
            {
                return(false);
            }
            var isNameNotEmpty = !string.IsNullOrEmpty(EntityName) && !string.IsNullOrEmpty(ParentEntityName);

            return
                (GetType() == other.GetType() &&
                 (EntityId == otherIdentifier.EntityId ||
                  (isNameNotEmpty &&
                   EntityName == otherIdentifier.EntityName &&
                   ParentEntityName == otherIdentifier.ParentEntityName)));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Reserved for internal use.
 /// </summary>
 public override bool Equals(BulkEntityIdentifier other)
 {
     return
         (GetType() == other.GetType() &&
          EntityId == ((BulkTargetIdentifier)other).EntityId);
 }