CSharpFeeds - All your C# feeds in one place.

Monday, October 03, 2011

Working with Lazy Loading in Entity Framework Code First

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 ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us