public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } if (AppointmentId != 0) { hash ^= AppointmentId.GetHashCode(); } if (ActiveState != 0) { hash ^= ActiveState.GetHashCode(); } hash ^= activeGates_.GetHashCode(); hash ^= finishGates_.GetHashCode(); if (CreateTime != 0L) { hash ^= CreateTime.GetHashCode(); } if (LastModifyTime != 0L) { hash ^= LastModifyTime.GetHashCode(); } return(hash); }