public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (Demographics == null ? 0 : Demographics.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SalesPersonId == null ? 0 : SalesPersonId.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (AdditionalContactInfo == null ? 0 : AdditionalContactInfo.GetHashCode()); hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (Demographics == null ? 0 : Demographics.GetHashCode()); hash = hash * 23 + (EmailPromotion == default(int) ? 0 : EmailPromotion.GetHashCode()); hash = hash * 23 + (FirstName == null ? 0 : FirstName.GetHashCode()); hash = hash * 23 + (LastName == null ? 0 : LastName.GetHashCode()); hash = hash * 23 + (MiddleName == null ? 0 : MiddleName.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (NameStyle == default(bool) ? 0 : NameStyle.GetHashCode()); hash = hash * 23 + (PersonType == null ? 0 : PersonType.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (Suffix == null ? 0 : Suffix.GetHashCode()); hash = hash * 23 + (Title == null ? 0 : Title.GetHashCode()); return(hash); } }