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

New Post: Not able to get Deep Load working

$
0
0
Thanks for the response, the .Include() was what I was missing. In my service I added a GetByID() method to encapsulate the retrieving of the entire graph. Is that how/where you would recommend getting an entire object graph? In my case, it's a UserRole entity with SecurityComponents:

In UserRoleService.cs
        public UserRole GetByID(int userRoleID)
        {
            return this.Query(ur => ur.UserRoleID == userRoleID).Include(sc => sc.UserRoleSecurityComponents).Select().First();
        }

Viewing all articles
Browse latest Browse all 1539

Trending Articles



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