Solved

Need to try out Lazy Loading

Posted on 2011-02-17
2
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 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