Can you disable lazy/deferred loading

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
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
3107 Views
Last post 12-05-2012, 23:50:43
by littonbarney
0 Replies
1395 Views
Last post 10-24-2011, 20:38:42
by abcdf
3 Replies
2866 Views
Last post 11-16-2017, 02:01:44
by damponting44
6 Replies
3823 Views
Last post 12-18-2016, 23:53:32
by Gabrel
0 Replies
906 Views
Last post 06-07-2016, 06:28:27
by clapcreative