2
Reply

Can you disable lazy/deferred loading?

Akhil Khare

Akhil Khare

10y
1.9k
0
Reply

    http://www.planetofcoders.com/can-you-disable-lazydeferred-loading/

    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.context.ContextOptions.LazyLoadingEnabled = false;