Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Disable EF Lazy Loading #2338


User avatar
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)
  • User Avatar
    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.