C#C
C#4y ago
Natty

Ez LINQ Help

I am trying to get a list of Values from the Cells where the Columns table Number is equal to 0.
I think I am close, but not quite there:
var cashFlowCells = db.CashFlows.Include(x => x.Cells).Where(x => x.Columns.FirstOrDefault().Number == 0).OrderByDescending(x => x.Id).FirstOrDefault().Cells.Select(x => x.Value).ToList();
Was this page helpful?