I had an Include method like so
public static IQueryable<SlideSet> IncludeParameters(this IDbSet<SlideSet> storage) {
return storage.Include(ss => ss.Params.Select(x => x.Parameter));
}
I am cleaning up my domain model and it no longer makes sense to have SlideSet.Params be public.
I know that there is a form of IDbSet<>.Include() that takes a string parameter. What is the syntax for using a string while descending into the child property like this?
btw, for those who are wondering, I'm pretty sure
return storage.Include(ss => ss.Params.Select(x => x.Parameter));
is identical to
return storage.Include(ss => ss.Params.Include(x => x.Parameter));