Entity Framework: How to disable lazy loading for specific query? January 13, 2023 by Tarik set the following code before the query you want to execute context.Configuration.LazyLoadingEnabled = false;