public override int GetHashCode() { var hashCode = 1502939027; hashCode = hashCode * -1521134295 + FirstName.GetHashCode(); hashCode = hashCode * -1521134295 + LastName.GetHashCode(); if (MiddleName != null) { hashCode = hashCode * -1521134295 + MiddleName.GetHashCode(); } hashCode = hashCode * -1521134295 + Birthday.GetHashCode(); hashCode = hashCode * -1521134295 + Post.GetHashCode(); hashCode = hashCode * -1521134295 + EmploymentDate.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = EmployeeId; hashCode = (hashCode * 397) ^ PositionId; hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Patronymic != null ? Patronymic.GetHashCode() : 0); hashCode = (hashCode * 397) ^ BirthDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Address != null ? Address.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Education != null ? Education.GetHashCode() : 0); hashCode = (hashCode * 397) ^ EmploymentDate.GetHashCode(); hashCode = (hashCode * 397) ^ Deleted.GetHashCode(); return(hashCode); } }