|
by ssmith via Blog on 10/3/2011 2:57:45 AM
Entity Framework 4 has Lazy Loading built-in and enabled by default. Here’s a quick bit of code to show you how to work with this feature. To get started with this, simply create a new Console Application and in nuget (Package Manager Console), run this command: install-package EntityFramework.Sample This will install a simple blog post example. Copy and paste the following into your Program.cs file (replace everything): using System;
using System.Collections.G
... [ read more ]
|