public override int GetHashCode()
        {
            int hash = 1;

            if (EmployeeId != 0)
            {
                hash ^= EmployeeId.GetHashCode();
            }
            if (Surname.Length != 0)
            {
                hash ^= Surname.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Gender.Length != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (DepartmentId != 0)
            {
                hash ^= DepartmentId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((EmployeeId.GetHashCode() * 397) ^ StartDate.GetHashCode());
     }
 }
Example #3
0
        public override int GetHashCode()
        {
            int hashCode = 13;

            hashCode = (hashCode * 7) + EmployeeId.GetHashCode();
            return(hashCode);
        }
Example #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EmployeeId != 0)
            {
                hash ^= EmployeeId.GetHashCode();
            }
            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Address.Length != 0)
            {
                hash ^= Address.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hashCode = -159635792;

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

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

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

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

            return(hashCode);
        }
Example #6
0
        public override int GetHashCode()
        {
            var hashCode = -1499410252;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + EmployeeId.GetHashCode();
            return(hashCode);
        }
Example #7
0
        public override int GetHashCode()
        {
            int hashCode = 1822066363;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + Score.GetHashCode();
            hashCode = hashCode * -1521134295 + Year.GetHashCode();
            hashCode = hashCode * -1521134295 + EmployeeId.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = _meetingDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ SubmissionTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (EmployeeId != null ? EmployeeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MeetingDuration;
         return(hashCode);
     }
 }
Example #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = _date.GetHashCode();
         hashCode = (hashCode * 397) ^ _startTime.GetHashCode();
         hashCode = (hashCode * 397) ^ _endTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (_employeeId != null ? _employeeId.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = EmployeeId.GetHashCode();
                hashCode = (hashCode * 397) ^ Date.GetHashCode();
                hashCode = (hashCode * 397) ^ Amount.GetHashCode();

                return(hashCode);
            }
        }
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = GetType().GetHashCode();
                hash = (hash * 31) ^ EmployeeId.GetHashCode();
                hash = (hash * 31) ^ DataStorageId.GetHashCode();

                return(hash);
            }
        }
Example #12
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = (int)2166136261;

                hash = hash * 16777619 ^ EmployeeId.GetHashCode();
                hash = hash * 16777619 ^ FirstName.GetHashCode();
                hash = hash * 16777619 ^ LastName.GetHashCode();
                return(hash);
            }
        }
Example #13
0
        public void EmployeeIds_WhenEqual_HaveTheSameHashCode()
        {
            // Arrange
            var id1 = new EmployeeId("foo");
            var id2 = new EmployeeId("foo");

            // Act
            var hashCodesAreEqual = (id1.GetHashCode() == id2.GetHashCode());

            // Assert
            hashCodesAreEqual.Should().BeTrue();
        }
Example #14
0
        public void EmployeeIds_WhenNotEqual_HaveDifferentHashCodes()
        {
            // Arrange
            var id1 = new EmployeeId("bar");
            var id2 = new EmployeeId("foo");

            // Act
            var hashCodesAreEqual = (id1.GetHashCode() == id2.GetHashCode());

            // Assert
            hashCodesAreEqual.Should().BeFalse();
        }
Example #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = bookingId.GetHashCode();
         hashCode = (hashCode * 397) ^ EmployeeId.GetHashCode();
         hashCode = (hashCode * 397) ^ HotelId.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)RoomType;
         hashCode = (hashCode * 397) ^ CheckIn.GetHashCode();
         hashCode = (hashCode * 397) ^ CheckOut.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + (EmployeeId == default(int) ? 0 : EmployeeId.GetHashCode());
         hash = hash * 23 + (Freight == default(decimal) ? 0 : Freight.GetHashCode());
         hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode());
         hash = hash * 23 + (OrderDate == default(DateTime) ? 0 : OrderDate.GetHashCode());
         hash = hash * 23 + (RevisionNumber == default(byte) ? 0 : RevisionNumber.GetHashCode());
         hash = hash * 23 + (ShipDate == null ? 0 : ShipDate.GetHashCode());
         hash = hash * 23 + (ShipMethodId == default(int) ? 0 : ShipMethodId.GetHashCode());
         hash = hash * 23 + (Status == default(byte) ? 0 : Status.GetHashCode());
         hash = hash * 23 + (SubTotal == default(decimal) ? 0 : SubTotal.GetHashCode());
         hash = hash * 23 + (TaxAmt == default(decimal) ? 0 : TaxAmt.GetHashCode());
         hash = hash * 23 + (TotalDue == default(decimal) ? 0 : TotalDue.GetHashCode());
         hash = hash * 23 + (VendorId == default(int) ? 0 : VendorId.GetHashCode());
         return(hash);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = -902472069;

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

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

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

            return(hashCode);
        }
Example #18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (EmployeeId != 0)
            {
                hash ^= EmployeeId.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hashCode = 1056052778;

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

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

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

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

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

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

            return(hashCode);
        }
Example #20
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);
        }
        public override int GetHashCode()
        {
            int hashCode = -1953859747;

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
Example #22
0
 /// <summary>
 /// Returns the hash employeeId for this employee.
 /// </summary>
 /// <returns>The hash employeeId based on the employee's key field.</returns>
 public override int GetHashCode() => EmployeeId.GetHashCode();
Example #23
0
        public override int GetHashCode()
        {
            int hashCode = 1131972147;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
Example #24
0
 public override int GetHashCode()
 {
     return(EmployeeId.GetHashCode());
 }
Example #25
0
        public override int GetHashCode()
        {
            int hashCode = 1002014939;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashCode = -855846569;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            return(hashCode);
        }
Example #27
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                var hashCode = 41;
                // Suitable nullity checks etc, of course :)
                if (EmployeeId != null)
                {
                    hashCode = hashCode * 59 + EmployeeId.GetHashCode();
                }
                if (EmployeeCode != null)
                {
                    hashCode = hashCode * 59 + EmployeeCode.GetHashCode();
                }
                if (EmployeeName != null)
                {
                    hashCode = hashCode * 59 + EmployeeName.GetHashCode();
                }

                hashCode = hashCode * 59 + Gender.GetHashCode();
                if (DateOfBirth != null)
                {
                    hashCode = hashCode * 59 + DateOfBirth.GetHashCode();
                }
                if (PhoneNumber != null)
                {
                    hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
                }
                if (DepartmentId != null)
                {
                    hashCode = hashCode * 59 + DepartmentId.GetHashCode();
                }
                if (DepartmentName != null)
                {
                    hashCode = hashCode * 59 + DepartmentName.GetHashCode();
                }
                if (Email != null)
                {
                    hashCode = hashCode * 59 + Email.GetHashCode();
                }

                hashCode = hashCode * 59 + Salary.GetHashCode();

                hashCode = hashCode * 59 + WorkStatus.GetHashCode();
                if (PositionId != null)
                {
                    hashCode = hashCode * 59 + PositionId.GetHashCode();
                }
                if (PositionName != null)
                {
                    hashCode = hashCode * 59 + PositionName.GetHashCode();
                }
                if (TaxCode != null)
                {
                    hashCode = hashCode * 59 + TaxCode.GetHashCode();
                }
                if (JoinDate != null)
                {
                    hashCode = hashCode * 59 + JoinDate.GetHashCode();
                }
                if (IdentityNumber != null)
                {
                    hashCode = hashCode * 59 + IdentityNumber.GetHashCode();
                }
                if (IdentityDate != null)
                {
                    hashCode = hashCode * 59 + IdentityDate.GetHashCode();
                }
                if (IdentityPlace != null)
                {
                    hashCode = hashCode * 59 + IdentityPlace.GetHashCode();
                }
                return(hashCode);
            }
        }