If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Can you disable lazy/deferred loading

Started by chinmay.sahoo, 02-05-2016, 03:33:24

Previous topic - Next topic

chinmay.sahooTopic starter

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.


Quotecontext.ContextOptions.LazyLoadingEnabled = false;



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...