MSDN Archive Home
Help and FAQs
Transparent Lazy Loading for Entity Framework
All Resource Updates
Change History (all pages)
This sample shows how to use code generation to add support for transparent lazy loading to Entity Framework. It includes code generator (EFLazyClassGen), supporting library (Microsoft.Data.EFLazyLoading) and sample test applications.
EFLazyClassGen generates C# code that can be used instead of object layer generated by EdmGen or Entity Framework Designer. Generated code adds support for lazy entity objects that store their data in the form of flyweight objects. Object data is initialized on first access or navigation which means objects can exist without having non-key data loaded.
Read more about the library and its usage
UPDATE: Visual Basic version of the sample is now available in the Downloads section.
Please use issue tracker on this page to report any problems and suggestions for future releases.
Apr 16 2010 at 1:00 AM
, version 7
Aug 18 2008 at 9:04 PM
Getting this error when building solution "Error 1 The command "C:\My Documents\Visual Studio 2008\Projects\Entity Framework Samples\EFLazyLoading\EFLazyLoading\\Sources\EFLazyClassGen\bin\Debug\EFLazyClassGen.exe C:\My Documents\Visual Studio 2008\Projects\Entity Framework Samples\EFLazyLoading\EFLazyLoading\Tests\DesignerTest\NorthwindEF.edmx C:\My Documents\Visual Studio 2008\Projects\Entity Framework Samples\EFLazyLoading\EFLazyLoading\Tests\DesignerTest\NorthwindEF.Designer.cs" exited with code 9009. DesignerTest" Can anyone assist? Thanks
Nov 12 2010 at 12:07 AM
I know this comment is extremely old, but I had the same problem and here is how I solved it.
Wrap the statements in your pre-build with quotes.
"$(SolutionDir)Sources\EFLazyClassGen\bin\$(Configuration)\EFLazyClassGen.exe" "$(ProjectDir)NorthwindEF.edmx" "$(ProjectDir)NorthwindEF.Designer.cs"
In case your wondering why I'm still using VS2008, well because some companies just don't upgrade to the latest version of software, if ever!
Mar 29 2011 at 8:31 PM
The solution can't build.
Jan 18 2012 at 12:12 PM
I am facing same build error, please help..
Sign in to add a comment
EFLazyLoading for VS20...
Mon Aug 11 2008 at 7:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.