//Cria hashcode para consulta
        public override int GetHashCode()
        {
            var hashCode = 825685457;

            hashCode = hashCode * -1521134295 + Date.GetHashCode();
            hashCode = hashCode * -1521134295 + MedicalAppointmentType.GetHashCode();
            hashCode = hashCode * -1521134295 + CustomerCode.GetHashCode();
            hashCode = hashCode * -1521134295 + DoctorCode.GetHashCode();
            return(hashCode);
        }
Exemple #2
0
        /// <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 (CustomerId != null)
                {
                    hashCode = hashCode * 59 + CustomerId.GetHashCode();
                }
                if (CustomerCode != null)
                {
                    hashCode = hashCode * 59 + CustomerCode.GetHashCode();
                }
                if (CustomerName != null)
                {
                    hashCode = hashCode * 59 + CustomerName.GetHashCode();
                }
                if (Email != null)
                {
                    hashCode = hashCode * 59 + Email.GetHashCode();
                }
                if (CompanyName != null)
                {
                    hashCode = hashCode * 59 + CompanyName.GetHashCode();
                }
                if (CustomerGroupId != null)
                {
                    hashCode = hashCode * 59 + CustomerGroupId.GetHashCode();
                }

                hashCode = hashCode * 59 + DebitMoney.GetHashCode();
                if (Address != null)
                {
                    hashCode = hashCode * 59 + Address.GetHashCode();
                }
                if (PhoneNumber != null)
                {
                    hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
                }
                if (DateOfBirth != null)
                {
                    hashCode = hashCode * 59 + DateOfBirth.GetHashCode();
                }
                return(hashCode);
            }
        }
 /// <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 (CustomerCode != null)
         {
             hashCode = hashCode * 59 + CustomerCode.GetHashCode();
         }
         if (Units != null)
         {
             hashCode = hashCode * 59 + Units.GetHashCode();
         }
         return(hashCode);
     }
 }