Is there any way to disable lazy loading for specific query on Entity Framework 6? I want to use it regularly, but sometimes I want to disable it. I'm using virtual properties to lazy load them.
C# – Entity Framework: How to disable lazy loading for specific query
centity-frameworklazy-loading
Related Topic
- C# – How to handle multiple submit buttons in ASP.NET MVC Framework
- C# – Case insensitive ‘Contains(string)’
- C# – LINQ’s Distinct() on a particular property
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- Entity-framework – How to delete multiple rows in Entity Framework (without foreach)
- C# – The entity cannot be constructed in a LINQ to Entities query
- C# – reason for C#’s reuse of the variable in a foreach
- C# – Entity Framework 5 Updating a Record
Best Answer
set the following code before the query you want to execute