Example #1
0
        /// <summary>
        /// Returns true if History instances are equal
        /// </summary>
        /// <param name="other">Instance of History to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(History other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     HistoryText == other.HistoryText ||
                     HistoryText != null &&
                     HistoryText.Equals(other.HistoryText)
                 ) &&
                 (
                     CreatedDate == other.CreatedDate ||
                     CreatedDate != null &&
                     CreatedDate.Equals(other.CreatedDate)
                 ));
        }
Example #2
0
        /// <summary>
        /// Returns true if HistoryViewModel instances are equal
        /// </summary>
        /// <param name="other">Instance of HistoryViewModel to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(HistoryViewModel other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id.Equals(other.Id)
                     ) &&
                 (
                     HistoryText == other.HistoryText ||
                     HistoryText != null &&
                     HistoryText.Equals(other.HistoryText)
                 ) &&
                 (
                     LastUpdateUserid == other.LastUpdateUserid ||
                     LastUpdateUserid != null &&
                     LastUpdateUserid.Equals(other.LastUpdateUserid)
                 ) &&
                 (
                     LastUpdateTimestamp == other.LastUpdateTimestamp ||
                     LastUpdateTimestamp != null &&
                     LastUpdateTimestamp.Equals(other.LastUpdateTimestamp)
                 ) &&
                 (
                     AffectedEntityId == other.AffectedEntityId ||
                     AffectedEntityId != null &&
                     AffectedEntityId.Equals(other.AffectedEntityId)
                 ));
        }