Solved

Need to try out Lazy Loading

Posted on 2011-02-17
2
282 Views
Last Modified: 2012-05-11
I have not used Lazy Loading, unless it's the default with Entity Framework 4.0. I use L2E.

Pllease tell me about how to know if I use Lazy Loading and how to configure it if I do not. Also, what are the pitfalls?

Thanks,
newbieweb

0
Comment
Question by:newbieweb
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34916049
Lazy loading is on by default. You can force loading of dependent entities by using the Include() method in your LINQ query if needed, by explicitly calling Load() on the child collection.

Further reading:

    http://www.singingeels.com/Articles/Entity_Framework_and_Lazy_Loading.aspx
0
 

Author Closing Comment

by:newbieweb
ID: 34916414
Thanks.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now