Entity Framework: How to disable the LazyLoadingEnabled for just one query

Viewed 42

I know I can disable the lazy loading by setup:

Configuration.LazyLoadingEnabled = false;

But I'm wondering does this setting affect every queries in the following? If so, are there any way to disable it for just one query?

Can I achieve this by just set Configuration.LazyLoadingEnabled = true after the query or are there any side effects on this?

0 Answers
Related