I'm having trouble in ordering a query where I have to sort the children by the ID, Follow Source.
public Grid GetByOrderGridData(long id)
{
var query = from c in context.Set<Grid>()
where c.Id == id
orderby c.GridDatas.OrderBy(p => p.Id)
select c;
return query.FirstOrDefault();
}
The source compiles without problem but when querying.
{"DbSortClause expressions must have a comparable type. \ r \ nName parameter: key"}