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); }
protected bool Equals(Connection other) { return(Equals(Source, other.Source) && Equals(Target, other.Target) && LeavingTime.Equals(other.LeavingTime) && ArrivalTime.Equals(other.ArrivalTime)); }