A Look at Lazy Loading in EF4
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 23 May 2009 |
View original | Bookmarked: 0 time(s)
Lazy Loading is a feature that many ORM tools including LINQ to SQL support by default,
but does not exist in EFv1. I appreciate not having my code hit the database without
me asking for it, but there are plenty of times when you will want your code to be
helpful enough to go get related data when you ask for it even if you didn't specifically
load it into memory.
EF4 now supports lazy loading, although it is OFF by default. For the person who wants
to have control over trips to the database, off...