/// <summary> /// Returns true if ProductPhoto instances are equal /// </summary> /// <param name="other">Instance of ProductPhoto to be compared</param> /// <returns>Boolean</returns> public bool Equals(ProductPhoto other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ProductPhotoID == other.ProductPhotoID || ProductPhotoID != null && ProductPhotoID.Equals(other.ProductPhotoID) ) && ( ThumbNailPhoto == other.ThumbNailPhoto || ThumbNailPhoto != null && ThumbNailPhoto.Equals(other.ThumbNailPhoto) ) && ( ThumbNailPhotoFileName == other.ThumbNailPhotoFileName || ThumbNailPhotoFileName != null && ThumbNailPhotoFileName.Equals(other.ThumbNailPhotoFileName) ) && ( LargePhoto == other.LargePhoto || LargePhoto != null && LargePhoto.Equals(other.LargePhoto) ) && ( LargePhotoFileName == other.LargePhotoFileName || LargePhotoFileName != null && LargePhotoFileName.Equals(other.LargePhotoFileName) )); }