As explained in my first thread, in EF Core lazy loading is off by default. You have to add configuration to enable lazy loading in EF Core. This information is openly and clearly published in the linked documentation from my first post.
This information is also your most recent post for Core 2.1.
From your linked post...
Because of the disadvantages of lazy loading, comparing the implementations of lazy loading between Entity Framework and EF Core, it’s now implemented in a different way.
You need to explicitly turn it on.
It seems you did not read the entire link?
9peculiar
Having said this. my question remains ..how I disabled LAZY LOADING option in EF CORE ?
Did you enable lazy loading and now you want to remove lazy loading? If so, Just remove the configuration you setup when you enabled lazy loading.
All-Star
53061 Points
23648 Posts
Re: Problems Disabling Lazy Loading in Asp.net core
Jan 11, 2021 01:46 PM|mgebhard|LINK
As explained in my first thread, in EF Core lazy loading is off by default. You have to add configuration to enable lazy loading in EF Core. This information is openly and clearly published in the linked documentation from my first post.
https://docs.microsoft.com/en-us/ef/core/querying/related-data/lazy
This information is also your most recent post for Core 2.1.
From your linked post...
Because of the disadvantages of lazy loading, comparing the implementations of lazy loading between Entity Framework and EF Core, it’s now implemented in a different way. You need to explicitly turn it on.
It seems you did not read the entire link?
Did you enable lazy loading and now you want to remove lazy loading? If so, Just remove the configuration you setup when you enabled lazy loading.