public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (FullDocumentFileName != null ? FullDocumentFileName.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (FreeSnippetFileName != null ? FreeSnippetFileName.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (OriginalFileName != null ? OriginalFileName.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Degree != null ? Degree.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (CourseName != null ? CourseName.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (CourseCode != null ? CourseCode.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Year != null ? Year.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ UniversityId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UploadedBy.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UploadedAt.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (DeletedAt != null ? DeletedAt.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ IsFree.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (IsApproved != null ? IsApproved.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Hash != null ? Hash.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (MinHashSignature != null ? MinHashSignature.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CategoryId.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UniversityId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (Group != null ? Group.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CreatedBy.GetHashCode(); hashCode = (hashCode * randomPrime) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (DeletedAt != null ? DeletedAt.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Password != null ? Password.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (EmailConfirmedAt != null ? EmailConfirmedAt.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (DeletedAt != null ? DeletedAt.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (InviteCode != null ? InviteCode.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (UniversityId != null ? UniversityId.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Role != null ? Role.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (AcademicField != null ? AcademicField.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (AcademicResume != null ? AcademicResume.GetHashCode() : 0); return(hashCode); } }