/// <summary> /// Returns true if ProvincialRateType instances are equal /// </summary> /// <param name="other">Instance of ProvincialRateType to be compared</param> /// <returns>Boolean</returns> public bool Equals(ProvincialRateType other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( RateType == other.RateType || RateType.Equals(other.RateType) ) && ( Description == other.Description || Description.Equals(other.Description) ) && ( Active == other.Active || Active.Equals(other.Active) ) && ( PeriodType == other.PeriodType || PeriodType != null && PeriodType.Equals(other.PeriodType) ) && ( Rate == other.Rate || Rate != null && Rate.Equals(other.Rate) ) && ( IsPercentRate == other.IsPercentRate || IsPercentRate.Equals(other.IsPercentRate) ) && ( IsRateEditable == other.IsRateEditable || IsRateEditable.Equals(other.IsRateEditable) ) && ( IsIncludedInTotal == other.IsIncludedInTotal || IsIncludedInTotal.Equals(other.IsIncludedInTotal) ) && ( IsInTotalEditable == other.IsInTotalEditable || IsInTotalEditable.Equals(other.IsInTotalEditable) )); }
/// <summary> /// Returns true if RentalAgreementRate instances are equal /// </summary> /// <param name="other">Instance of RentalAgreementRate to be compared</param> /// <returns>Boolean</returns> public bool Equals(RentalAgreementRate other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( RentalAgreement == other.RentalAgreement || RentalAgreement != null && RentalAgreement.Equals(other.RentalAgreement) ) && ( IsIncludedInTotal == other.IsIncludedInTotal || IsIncludedInTotal.Equals(other.IsIncludedInTotal) ) && ( ComponentName == other.ComponentName || ComponentName != null && ComponentName.Equals(other.ComponentName) ) && ( IsAttachment == other.IsAttachment || IsAttachment != null && IsAttachment.Equals(other.IsAttachment) ) && ( Rate == other.Rate || Rate != null && Rate.Equals(other.Rate) ) && ( PercentOfEquipmentRate == other.PercentOfEquipmentRate || PercentOfEquipmentRate != null && PercentOfEquipmentRate.Equals(other.PercentOfEquipmentRate) ) && ( RatePeriod == other.RatePeriod || RatePeriod != null && RatePeriod.Equals(other.RatePeriod) ) && ( Comment == other.Comment || Comment != null && Comment.Equals(other.Comment) ) && ( TimeRecords == other.TimeRecords || TimeRecords != null && TimeRecords.SequenceEqual(other.TimeRecords) )); }