I'm new to LINQ also, I have this query :
Code: Select all
var categories = from c in ctx.Categories.LoadWith(n => n.Products)
orderby c.CategoryName ascending
select c;
Code: Select all
select new { c.Name, c.Products }
Thanks