The cost of eager loading in Entity Framework

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 30 Mar 2009 | View original | Bookmarked: 0 time(s)

Everything in life is about choices and usually we have to evaluate our options before we make those choices. So it goes with eager loading vs. deferred loading in Entity Framework. We have the option of eager loading with the Include method and can use it very creatively. For an entity that has a lot of relationships you could do something like: context.Customers.Include("Orders.LineItems.Product").Include("Addresses") .csharpcode, .csharpcode pre{ font-size: small; color: black; font-family:...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1534 | Hits: 83

Similar Posts

  • EF4: Lazy Loading on By Default but what about pre Beta 2 Models? more
  • Checking out one of the new stored procedure features in EF4 more
  • VB Entity Framework Samples Now Available (Lisa Feigenbaum) more
  • NHibernate : Some Naked Thoughts more
  • Customizing EDM Code Gen in EF4 more
  • You should NOT use ASP.NET MVC if. . . more
  • Talking Points: ADO.NET Entity Framework more
  • EntityObject Class Constructors more
  • 2009 Predictions - ASP.NET, BizTalk and LINQ 2 SQL are dead and so are VB, C# and Azure more
  • The Estrangement of LINQ to SQL 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