Table Category (c) has a 1:many relationship with Table Question: a Category can have many Questions but a Question belongs only to one category. The questions are also ranked in terms of difficulty.
I would like a LINQ to EF query that would return all Categories with related Questions but the Questions should be sorted ascending in terms of difficulty (lets say on the Question.Rank column).
My query so far, is missing the sorted of the questions:
var results = from c in context.Category.Include("Question") select c;
How needs to be added to get the questions sorted?