I have the following with EF 5:...var a = context.Posts.Include(x => x.Pack).Select(x => x.Pack.Id).ToList();
...This works. Then I tried to replicate this in my generic repository:...public IQueryable<T> Include<T>(Expression<Func<T, Boolean>> criteria) ...