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...

Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 631 | Hits: 28

Similar Posts

  • Unit Testing - Do Repeat Yourself more
  • Update to Logging in to DotNetNuke from a Silverlight Application with RIA Authentication more
  • Examining ASP.NET's Membership, Roles, and Profile - Part 15 more
  • May CTP of 'Oslo' - Initial experiments more
  • Sending ELMAH Errors Via GMail more
  • Custom Controller Factory in ASP.NET MVC more
  • Validation - Part 1 - Getting Started more
  • Don't be afraid of complex constraints more
  • Calling the Twitter API in C# more
  • Updates to the TextBox Word / Character Counter Control more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD