AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

Entity Framework and Lazy Loading : Timothy Khouri

Sunday, September 21 2008

Microsoft's Entity Framework is a new, powerful tool bringing data modeling, O/RM (object relational mapping) functionality and more. One expected feature of major ORMs is 'Lazy Loading'. Learn how the Entity Framework provides this functionality in a different way. This article will explain the design reasons behind why EF is different than what you would expect, as well as how to achieve the lazy-load functionality you're looking for. It is important to realize that that ORMs are not a new concept. There are a lot of excellent ORMs out there for Ruby, Python and even for the .Net framework (NHibernate). As a result, when you "jump in" to EF, you may run into an 'issue' similar to what I did (with lazy loading not working the way I thought it would). Because I was used to LINQ to SQL, I was expecting implicit lazy loading, and therefore I thought that EF was broken. This misconception was wrong, and I'll explain more as we go on....

Read More:
Entity Framework and Lazy Loading : Timothy Khouri
Also See:
File Upload & Compression in ASP.Net : Richard Bean
Designing An Application Using Test Driven Development : Mohammad Azam
Updated: Use IPSec for Filtering Ports and Authentication : ASP.NET Whitepapers

Post your comment

Comment