Demystifying The Code

EF 4 – Implementing Lazy Loading For My POCO

In my last post, I provided a simple end-to-end example where I used the Entity Framework designer to generate an Entity Data Model (EDM), I turned off the default code generation and implemented my own POCOs.  Everything worked fine, but at the end of the post I pointed out that I no longer had the [...]

[ Read More → ]

EF 4 – Implementing POCO Objects

The EF team has released the POCO template for use with VSTS 2010 Beta 2.  I thought I might examine POCO support in the new version of the Entity Framework without taking advantage of the template first, then get into the template in a later post.  This post will provide a simple end-to-end sample of implementing POCO objects in EF4 (Beta 2).

[ Read More → ]

Is Lazy Loading in EF 4 Evil or the Second Coming?

(As you probably know) The Entity Framework provides you with various options for loading related entities.  In Entity Framework 4, you will have the choice to implement eager loading, explicit loading and now… lazy loading.  Lazy loading was not available in version 1.  A quick search on ‘Lazy Loading’ will yield opinions from 2 very [...]

[ Read More → ]

Demystifying The Code