I'm using the query below:
public IEnumerable<QUESTIONARIO_BASE> ListQuestionario()
{
var query = (from c in _entities.QUESTIONARIO_BASESet
.Include("QUESTAO_BASE")
.Include("QUESTAO_BASE.DIMENSAO")
.Include("QUESTAO_BASE.RESPOSTA_BASE")
select c);
return query.ToList();
}
And wants to order the sub sets QUESTAO_BASE and QUESTAO_BASE.RESPOSTA_BASE.
After google a lot and use much of examples found here I still not figure out how to accomplish this.
Anyone knows how to order the subsets and return a typed data?