I am having trouble converting this code into extension method syntax:
var query = from c in _context.Customers
from o in c.Orders
where o.DateSent == null
select new CustomerSummary
{
Id = c.Id,
Username = c.Username,
OutstandingOrderCount = c.Orders.Count
};
Any ideas?
1 Answer