1

I am using ado entity framework in my asp.net mvc2 application. I want to set context's LazyLoading enabled=false. But this options is not available. its giving error for contextoptions.

How do I add this attributes to my .edmx file? do i need any upgrade as I am using vs2008?

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
user726591
  • 21
  • 1
  • Is this what you're looking for? http://stackoverflow.com/questions/2967214/disable-lazy-loading-by-default-in-entity-framework-4 – Mas Apr 27 '11 at 08:50

1 Answers1

1

EFv1 (.NET 3.5) doesn't support transparent lazy loading so you don't need (and you can't) to change any settings. Lazy loading in EFv1 is always triggered manually by calling Load method on navigation property.

Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670