Solved

Need to try out Lazy Loading

Posted on 2011-02-17
2
281 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Replacing HTML tags in Textarea/Textbox 5 29
Problem to open Excel file 15 43
Long URL in SMS 6 24
Red error squiggly on vb.net 7 12
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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

22 Experts available now in Live!

Get 1:1 Help Now