How to globally disable lazy loading in Entity Framework 7?

asp.net entity-framework-core

Question

It seems like this way is no longer available.

public ApplicationDbContext()
{
    this.Configuration.LazyLoadingEnabled = false;
}
1
7
1/1/2016 12:04:09 PM

Accepted Answer

Lazy loading does not (currently) exist in EF7, so there is no API to disable it https://github.com/aspnet/EntityFramework/issues/3797

6
1/1/2016 1:17:36 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow