I have two lists List<WorkOrder> and List<PlannedWork> I would like join the two lists on the workorder number as detailed below. In other words I have a list of planned work but I need to know the description of the work for the workOrderNumber.
I am new to both linq and lambda expressions, and I haven’t quite got my head wrapped around them yet.
class WorkOrder
{
public int WorkOrderNumber { get; set; }
public string WorkDescription { get; set; }
}
class PlannedWork
{
public int WorkOrderNumber { get; set; }
public DateTime ScheduledDate { get; set; }
}
It sounds like you want something like: