Disabling Lazy Loading for SqlServer

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
i.kisliy
Posts: 1
Joined: Thu 26 Jan 2017 21:27

Disabling Lazy Loading for SqlServer

Post by i.kisliy » Thu 26 Jan 2017 21:35

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?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Disabling Lazy Loading for SqlServer

Post by Shalex » Fri 27 Jan 2017 17:06

You can do that at the DataContext level: https://www.devart.com/linqconnect/docs ... abled.html.

Post Reply