Open Closed

Disable EF Lazy Loading #2338


0
rickwheeler created

Hi,

Just wondering if it is safe to disable Entity Framework Lazy Loading?

public MyDbContext()  : base("Default")
{
    this.Configuration.LazyLoadingEnabled = false;
}

I want to disable it in my DbContext but want to make sure it isn't going to cause any issues with ABP.

Thanks, Sean


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    We assumed Lazy Loading enabled while developing AspNet Zero, but I don't remember all parts of the project. Probably it will not be a problem disabling it, you can give it a try.