Can you disable lazy/deferred loading

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
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
2810 Views
Last post 12-05-2012, 23:50:43
by littonbarney
0 Replies
1171 Views
Last post 10-24-2011, 20:38:42
by abcdf
2 Replies
1827 Views
Last post 09-18-2015, 03:52:24
by nancyisabell
6 Replies
2914 Views
Last post 12-18-2016, 23:53:32
by Gabrel
0 Replies
665 Views
Last post 06-07-2016, 06:28:27
by clapcreative