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;
}

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



Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why