Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: Linq to get deep load unsuccessful

$
0
0
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?

Viewing all articles
Browse latest Browse all 1539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>