/// <summary> /// Returns true if UserDistrict instances are equal /// </summary> /// <param name="other">Instance of UserDistrict to be compared</param> /// <returns>Boolean</returns> public bool Equals(UserDistrict other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( User == other.User || User.Equals(other.User) ) && ( District == other.District || District.Equals(other.District) ) && ( IsPrimary == other.IsPrimary || IsPrimary.Equals(other.IsPrimary) )); }
/// <summary> /// Returns true if ConditionType instances are equal /// </summary> /// <param name="other">Instance of ConditionType to be compared</param> /// <returns>Boolean</returns> public bool Equals(ConditionType other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( District == other.District || District.Equals(other.District) ) && ( ConditionTypeCode == other.ConditionTypeCode || ConditionTypeCode.Equals(other.ConditionTypeCode) ) && ( Description == other.Description || Description.Equals(other.Description) ) && ( Active == other.Active || Active.Equals(other.Active) )); }
/// <summary> /// Returns true if DistrictEquipmentType instances are equal /// </summary> /// <param name="other">Instance of DistrictEquipmentType to be compared</param> /// <returns>Boolean</returns> public bool Equals(DistrictEquipmentType other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( EquipmentType == other.EquipmentType || EquipmentType != null && EquipmentType.Equals(other.EquipmentType) ) && ( District == other.District || District != null && District.Equals(other.District) ) && ( DistrictEquipmentName == other.DistrictEquipmentName || DistrictEquipmentName != null && DistrictEquipmentName.Equals(other.DistrictEquipmentName) )); }
/// <summary> /// Returns true if ServiceArea instances are equal /// </summary> /// <param name="other">Instance of ServiceArea to be compared</param> /// <returns>Boolean</returns> public bool Equals(ServiceArea other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( MinistryServiceAreaID == other.MinistryServiceAreaID || MinistryServiceAreaID.Equals(other.MinistryServiceAreaID) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( District == other.District || District != null && District.Equals(other.District) ) && ( StartDate == other.StartDate || StartDate.Equals(other.StartDate) ) && ( AreaNumber == other.AreaNumber || AreaNumber != null && AreaNumber.Equals(other.AreaNumber) ) && ( EndDate == other.EndDate || EndDate != null && EndDate.Equals(other.EndDate) )); }
/// <summary> /// Returns true if User instances are equal /// </summary> /// <param name="other">Instance of User to be compared</param> /// <returns>Boolean</returns> public bool Equals(User other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( GivenName == other.GivenName || GivenName != null && GivenName.Equals(other.GivenName) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) ) && ( Active == other.Active || Active.Equals(other.Active) ) && ( Initials == other.Initials || Initials != null && Initials.Equals(other.Initials) ) && ( Email == other.Email || Email != null && Email.Equals(other.Email) ) && ( SmUserId == other.SmUserId || SmUserId != null && SmUserId.Equals(other.SmUserId) ) && ( Guid == other.Guid || Guid != null && Guid.Equals(other.Guid) ) && ( SmAuthorizationDirectory == other.SmAuthorizationDirectory || SmAuthorizationDirectory != null && SmAuthorizationDirectory.Equals(other.SmAuthorizationDirectory) ) && ( UserRoles == other.UserRoles || UserRoles != null && UserRoles.SequenceEqual(other.UserRoles) ) && ( District == other.District || District != null && District.Equals(other.District) ) && ( UserDistricts == other.UserDistricts || UserDistricts != null && UserDistricts.SequenceEqual(other.UserDistricts) )); }
/// <summary> /// Returns true if Project instances are equal /// </summary> /// <param name="other">Instance of Project to be compared</param> /// <returns>Boolean</returns> public bool Equals(Project other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( District == other.District || District != null && District.Equals(other.District) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( ProvincialProjectNumber == other.ProvincialProjectNumber || ProvincialProjectNumber != null && ProvincialProjectNumber.Equals(other.ProvincialProjectNumber) ) && ( Information == other.Information || Information != null && Information.Equals(other.Information) ) && ( RentalRequests == other.RentalRequests || RentalRequests != null && RentalRequests.SequenceEqual(other.RentalRequests) ) && ( RentalAgreements == other.RentalAgreements || RentalAgreements != null && RentalAgreements.SequenceEqual(other.RentalAgreements) ) && ( PrimaryContact == other.PrimaryContact || PrimaryContact != null && PrimaryContact.Equals(other.PrimaryContact) ) && ( Contacts == other.Contacts || Contacts != null && Contacts.SequenceEqual(other.Contacts) ) && ( Notes == other.Notes || Notes != null && Notes.SequenceEqual(other.Notes) ) && ( Attachments == other.Attachments || Attachments != null && Attachments.SequenceEqual(other.Attachments) ) && ( History == other.History || History != null && History.SequenceEqual(other.History) )); }