Is there a way to disable lazy Loading on EntityFramework.Core
In my previous code I have done the following :
public DataContext(string nameOrConnectionString) : base(nameOrConnectionString)
{
Configuration.LazyLoadingEnabled = false;
Configuration.ProxyCreationEnabled = false;
}
but now using the new ef 7 i cant find any option to do so
public DataContext(DbContextOptions<DataContext> options) : base(options)
{
//should have been in the options
}
As of 2019 Lazy Loading is supported but not enabled by default, so there is nothing that you need to do still.