set the following code before the query you want to execute
context.Configuration.LazyLoadingEnabled = false;
More Related Contents:
- Entity Framework Code First Lazy Loading
- Eager , Lazy and explicit loading in EF6
- Entity Framework Eager Load Not Returning Data, Lazy Load Does
- The entity cannot be constructed in a LINQ to Entities query
- One DbContext per web request… why?
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details [duplicate]
- Entity Framework Code First – two Foreign Keys from same table
- What does principal end of an association means in 1:1 relationship in Entity framework
- Decimal precision and scale in EF Code First
- Entity Framework .Remove() vs. .DeleteObject()
- Many-to-many mapping table
- Why is inserting entities in EF 4.1 so slow compared to ObjectContext?
- Entity Framework error: Cannot insert explicit value for identity column in table
- Dynamic MySQL database connection for Entity Framework 6
- How do I clear tracked entities in entity framework
- How to disable cascade delete for link tables in EF code-first?
- Entity framework, problems updating related objects
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- Navigation Property without Declaring Foreign Key
- Entity Framework Specification Pattern Implementation
- MySQL Entity Framework Error – The specified store provider cannot be found in the configuration, or is not valid
- Self-referencing many-to-many recursive relationship code first Entity Framework
- Setting the default value of a DateTime Property to DateTime.Now inside the System.ComponentModel Default Value Attrbute
- Entity Framework Code First Date field creation
- How to implement IEqualityComparer to return distinct values?
- The relationship could not be changed because one or more of the foreign-key properties is non nullable
- C#, entity framework, auto increment
- Entity Framework not saving modified children
- How to wrap Entity Framework to intercept the LINQ expression just before execution?
- Entity Framework Many to many through containing object