Put this:
using System.Data.Entity;
into your usage list, after which you can use the Include method family from the DbExtensions class:
public static IQueryable<T> Include<T, TProperty>(this IQueryable<T> source, Expression<Func<T, TProperty>> path) where T : class; public static IQueryable<T> Include<T>(this IQueryable<T> source, string path) where T : class; public static IQueryable Include(this IQueryable source, string path);
They take IQueryable as the first argument, and there are strongly typed ones, which is better, then Include(String) .
Dennis
source share