7

It seems like this way is no longer available.

public ApplicationDbContext()
{
    this.Configuration.LazyLoadingEnabled = false;
}

1 Answer 1

6

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

Sign up to request clarification or add additional context in comments.

1 Comment

do you know if there are any workarounds for enabling it? I've been trying stuff out here: stackoverflow.com/questions/34790533/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.