i have two tables, products and categories. how do i convert the following sql query to linq format?
select c.Name, c.DisplayName, count(p.id) from categories as c
LEFT join products as p on p.categoryId = c.id
group by c.Name, c.DisplayName
some categories will have 0 products in them so the LEFT JOIN is important