示例#1
0
        public override int GetHashCode()
        {
            int hashCode = 168552180;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (StartAt != null)
            {
                hashCode += StartAt.GetHashCode();
            }

            if (EndAt != null)
            {
                hashCode += EndAt.GetHashCode();
            }

            if (BreakTypeId != null)
            {
                hashCode += BreakTypeId.GetHashCode();
            }

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (ExpectedDuration != null)
            {
                hashCode += ExpectedDuration.GetHashCode();
            }
            hashCode += IsPaid.GetHashCode();

            return(hashCode);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashCode = -1338935965;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (EmployeeId != null)
            {
                hashCode += EmployeeId.GetHashCode();
            }

            if (LocationId != null)
            {
                hashCode += LocationId.GetHashCode();
            }

            if (Timezone != null)
            {
                hashCode += Timezone.GetHashCode();
            }

            if (StartAt != null)
            {
                hashCode += StartAt.GetHashCode();
            }

            if (EndAt != null)
            {
                hashCode += EndAt.GetHashCode();
            }

            if (Wage != null)
            {
                hashCode += Wage.GetHashCode();
            }

            if (Breaks != null)
            {
                hashCode += Breaks.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (Version != null)
            {
                hashCode += Version.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (TeamMemberId != null)
            {
                hashCode += TeamMemberId.GetHashCode();
            }

            return(hashCode);
        }