/// <summary> /// Returns true if ProductReview instances are equal /// </summary> /// <param name="other">Instance of ProductReview to be compared</param> /// <returns>Boolean</returns> public bool Equals(ProductReview other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProductReviewID == other.ProductReviewID || ProductReviewID != null && ProductReviewID.Equals(other.ProductReviewID) ) && ( ProductId == other.ProductId || ProductId != null && ProductId.Equals(other.ProductId) ) && ( ReviewerName == other.ReviewerName || ReviewerName != null && ReviewerName.Equals(other.ReviewerName) ) && ( ReviewDate == other.ReviewDate || ReviewDate != null && ReviewDate.Equals(other.ReviewDate) ) && ( EmailAddress == other.EmailAddress || EmailAddress != null && EmailAddress.Equals(other.EmailAddress) ) && ( Rating == other.Rating || Rating != null && Rating.Equals(other.Rating) ) && ( Comments == other.Comments || Comments != null && Comments.Equals(other.Comments) )); }