Linq to get deep load unsuccessful

Jan 10, 2015 at 8:10 PM
I'm trying to implement your framework in my project and when I try to access a navigate object it is null!

I have four tables like the following:
var query = from p in plans
                       join pr in planRole on p.PlanId equals pr.PlanId
                       join u in users on pr.UserId equals u.UserId
                       select p;
           return query.AsEnumerable();
Suppost the plan has a country object and countryId how do I get country object ?

Do I need to change the query or even the repository layer?
Feb 12, 2015 at 6:51 PM
Marked as answer by lelong37 on 2/12/2015 at 11:51 AM