/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ProductModelID != null)
         {
             hashCode = hashCode * 59 + ProductModelID.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (CatalogDescription != null)
         {
             hashCode = hashCode * 59 + CatalogDescription.GetHashCode();
         }
         if (Instructions != null)
         {
             hashCode = hashCode * 59 + Instructions.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if ProductModel instances are equal
        /// </summary>
        /// <param name="other">Instance of ProductModel to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProductModel other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProductModelID == other.ProductModelID ||
                     ProductModelID != null &&
                     ProductModelID.Equals(other.ProductModelID)
                     ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     CatalogDescription == other.CatalogDescription ||
                     CatalogDescription != null &&
                     CatalogDescription.Equals(other.CatalogDescription)
                 ) &&
                 (
                     Instructions == other.Instructions ||
                     Instructions != null &&
                     Instructions.Equals(other.Instructions)
                 ));
        }