public bool Equals(Product other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && string.Equals(Name, other.Name) && string.Equals(BarCode, other.BarCode) && Price == other.Price && string.Equals(Description, other.Description) && IsPublished == other.IsPublished && Equals(Dimensions, other.Dimensions) && ManufacturerId.Equals(other.ManufacturerId) && Equals(Pictures, other.Pictures) && CategoryId.Equals(other.CategoryId) && Equals(Category, other.Category) && ProductTypeId == other.ProductTypeId && Equals(ProductType, other.ProductType) && string.Equals(ExternalSourceName, other.ExternalSourceName) && string.Equals(ExternalId, other.ExternalId)); }
/// <summary> /// Returns true if PatchProductRequestDto instances are equal /// </summary> /// <param name="other">Instance of PatchProductRequestDto to be compared</param> /// <returns>Boolean</returns> public bool Equals(PatchProductRequestDto other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ManufacturerId == other.ManufacturerId || ManufacturerId != null && ManufacturerId.Equals(other.ManufacturerId) ) && ( CategoryId == other.CategoryId || CategoryId != null && CategoryId.Equals(other.CategoryId) ) && ( ProductName == other.ProductName || ProductName != null && other.ProductName != null && ProductName.SequenceEqual(other.ProductName) )); }
/// <summary> /// Returns true if ManufacturerInfoDto instances are equal /// </summary> /// <param name="other">Instance of ManufacturerInfoDto to be compared</param> /// <returns>Boolean</returns> public bool Equals(ManufacturerInfoDto other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ManufacturerId == other.ManufacturerId || ManufacturerId.Equals(other.ManufacturerId) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) ) && ( Address == other.Address || Address != null && Address.Equals(other.Address) ) && ( Website == other.Website || Website != null && Website.Equals(other.Website) )); }