/// <summary> /// Returns true if InventoryOrder instances are equal /// </summary> /// <param name="other">Instance of InventoryOrder to be compared</param> /// <returns>Boolean</returns> public bool Equals(InventoryOrder other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( InventoryVariantName == other.InventoryVariantName || InventoryVariantName != null && InventoryVariantName.Equals(other.InventoryVariantName) ) && ( Created == other.Created || Created != null && Created.Equals(other.Created) ) && ( ReportDate == other.ReportDate || ReportDate != null && ReportDate.Equals(other.ReportDate) ) && ( Creator == other.Creator || Creator != null && Creator.Equals(other.Creator) ) && ( Assignees == other.Assignees || Assignees != null && Assignees.SequenceEqual(other.Assignees) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( HasOnlyUntaggedAssets == other.HasOnlyUntaggedAssets || HasOnlyUntaggedAssets != null && HasOnlyUntaggedAssets.Equals(other.HasOnlyUntaggedAssets) )); }