Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 1946622093;

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

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

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

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

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

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

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

            return(hashCode);
        }
Ejemplo n.º 2
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);
        }