Use Projections and a Repository to Fake a Filtered Eager Load
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 07 Dec 2011 |
View original | Bookmarked: 0 time(s)
Entity Frameworks Include method which eager loads related data in a query does not allow sorting and filtering. People ask for this feature frequently. There is a way around the problem. I wrote about it in the June Data Points column in MSDN Magazine (Loading Related Data: http://msdn.microsoft.com/en-us/magazine/hh205756.aspx) but since I just saw another comment on twitter about this, I thought I would stop working on Chapter 7 of the DbContext book that is already delayed and write a...