var query = (from f in CustomerAllocation1 select new Field { FieldId = f.FieldId, //EmployeeId = e.EmployeeId, //InvoiceDetailsListRows.ForEach(z => z.ChildCount = items.Count(x => x.ParentId == z.Id)), Children = (from c in CustomerAllocation where c.FieldId == f.FieldId select new Customer { FieldId = f.FieldId, CustomerId = c.CustomerId, jan = c.jan, feb = c.feb, mar= c.mar april= c.april }).tolist() }).tolist()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)