public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TitleOfCourtesy != null ? TitleOfCourtesy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ BirthDate.GetHashCode(); hashCode = (hashCode * 397) ^ HireDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Address != null ? Address.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Country != null ? Country.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HomePhone != null ? HomePhone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Extension != null ? Extension.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Photo != null ? Photo.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Notes != null ? Notes.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ReportsTo.GetHashCode(); hashCode = (hashCode * 397) ^ (PhotoPath != null ? PhotoPath.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int code = 27; code = unchecked ( code ^ EmployeeID.GetHashCode() ^ FirstName.GetHashCode() ^ Title.GetHashCode() ^ TitleOfCourtesy.GetHashCode() ^ BirthDate.GetHashCode() ^ HireDate.GetHashCode() ^ Address.GetHashCode() ^ City.GetHashCode() ^ Region.GetHashCode() ^ PostalCode.GetHashCode() ^ Country.GetHashCode() ^ HomePhone.GetHashCode() ^ Extension.GetHashCode() ^ Photo.GetHashCode() ^ Notes.GetHashCode() ^ ReportsTo.GetHashCode() ^ PhotoPath.GetHashCode() ); return(code); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ EntityRefId.GetHashCode(); hashCode = (hashCode * 397) ^ (Employer != null ? Employer.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ContactTypeId; hashCode = (hashCode * 397) ^ PreferredContactMethodType; hashCode = (hashCode * 397) ^ IsPrimary.GetHashCode(); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MiddleName != null ? MiddleName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (JobTitle != null ? JobTitle.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BusinessPhone != null ? BusinessPhone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MobilePhone != null ? MobilePhone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (HomePhone != null ? HomePhone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ ModifiedOn.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (GivenName.Length != 0) { hash ^= GivenName.GetHashCode(); } if (GivenName2.Length != 0) { hash ^= GivenName2.GetHashCode(); } if (FamilyName.Length != 0) { hash ^= FamilyName.GetHashCode(); } if (Email.Length != 0) { hash ^= Email.GetHashCode(); } if (HomePhone.Length != 0) { hash ^= HomePhone.GetHashCode(); } if (MobilePhone.Length != 0) { hash ^= MobilePhone.GetHashCode(); } if (FaxNumber.Length != 0) { hash ^= FaxNumber.GetHashCode(); } if (OfficePhone.Length != 0) { hash ^= OfficePhone.GetHashCode(); } if (OfficeAddress1.Length != 0) { hash ^= OfficeAddress1.GetHashCode(); } if (OfficeAddress2.Length != 0) { hash ^= OfficeAddress2.GetHashCode(); } if (OfficeCity.Length != 0) { hash ^= OfficeCity.GetHashCode(); } if (OfficeState.Length != 0) { hash ^= OfficeState.GetHashCode(); } if (OfficeZip.Length != 0) { hash ^= OfficeZip.GetHashCode(); } if (OfficeNation.Length != 0) { hash ^= OfficeNation.GetHashCode(); } if (HomeAddress1.Length != 0) { hash ^= HomeAddress1.GetHashCode(); } if (HomeAddress2.Length != 0) { hash ^= HomeAddress2.GetHashCode(); } if (HomeCity.Length != 0) { hash ^= HomeCity.GetHashCode(); } if (HomeState.Length != 0) { hash ^= HomeState.GetHashCode(); } if (HomeZip.Length != 0) { hash ^= HomeZip.GetHashCode(); } if (HomeNation.Length != 0) { hash ^= HomeNation.GetHashCode(); } if (CompanyName.Length != 0) { hash ^= CompanyName.GetHashCode(); } return(hash); }