Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Source != null ? Source.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Target != null ? Target.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ LeavingTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ArrivalTime.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = WorkedTimeId;
         hashCode = (hashCode * 397) ^ EmployeeId;
         hashCode = (hashCode * 397) ^ Date.GetHashCode();
         hashCode = (hashCode * 397) ^ ArrivalTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LeavingTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Deleted.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 3
0
        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj))
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            WorkedTime other = (WorkedTime)obj;

            return(WorkedTimeId == other.WorkedTimeId &&
                   EmployeeId == other.EmployeeId &&
                   Date.Equals(other.Date) &&
                   ArrivalTime.Equals(other.ArrivalTime) &&
                   LeavingTime.Equals(other.LeavingTime) &&
                   Deleted == other.Deleted);
        }
Ejemplo n.º 4
0
 protected bool Equals(Connection other)
 {
     return(Equals(Source, other.Source) && Equals(Target, other.Target) && LeavingTime.Equals(other.LeavingTime) && ArrivalTime.Equals(other.ArrivalTime));
 }