Page 1 of 1

Disabling Lazy Loading for SqlServer

Posted: Thu 26 Jan 2017 21:35
by i.kisliy
I'd like to disable lazy loading for some selects (so data is not loaded by using navigation properties and returns null or an empty collection instead).
Is there an option to disable lazy loading on per request basis?
if no, how can I disable it completely for a Db context?

Re: Disabling Lazy Loading for SqlServer

Posted: Fri 27 Jan 2017 17:06
by Shalex
You can do that at the DataContext level: https://www.devart.com/linqconnect/docs ... abled.html.