Hi,
I want to get one specific "Parent" from a table, and his "children". The children must be ordered by "year". The next statement gives a runtime exception: "Expression must be a MemberExpression"
ParentEntity myParent = metaData.Parent
.Where(p => p.Id == Id)
.WithPath( gp => gp.Prefetch(o => o.Children.OrderBy(ob => ob.Year) ))
.First<ParentEntity>();
I can't see anything wrong ?
Leon