Can you disable lazy/deferred loading

Author Topic: Can you disable lazy/deferred loading  (Read 414 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 153
  • Karma: 0
    • No Addiction
Can you disable lazy/deferred loading
« on: 02-05-2016, 01:33:24 »
Yes, you can turn off the lazy loading feature by setting LazyLoadingEnabled property of the ContextOptions on context to false. Now you can fetch the related objects with the parent object in one query itself.


Quote
context.ContextOptions.LazyLoadingEnabled = false;


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2626 Views
Last post 12-05-2012, 23:50:43
by littonbarney
0 Replies
994 Views
Last post 10-24-2011, 20:38:42
by abcdf
2 Replies
1620 Views
Last post 09-18-2015, 03:52:24
by nancyisabell
6 Replies
2175 Views
Last post 12-18-2016, 23:53:32
by Gabrel
0 Replies
506 Views
Last post 06-07-2016, 06:28:27
by clapcreative