Open Closed

Disable EF Lazy Loading #2338

rickwheeler created


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


    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.