Hi, I was tried to use below code to enable lazy load.
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseLazyLoadingProxies();
}
For this i install the Microsoft.EntityFrameworkCore.Proxies NuGet package into your project. After this i am getting error in below image. I done project upgrade version 8 to 12.1.0 and then i instill this library
7 Answer(s)
-
0
Hi,
Could you try this solution ?
https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3882#issuecomment-564860867
-
0
Hi,
Could you try this solution ?
https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3882#issuecomment-564860867
No, I tried on startup class in MVC project. in ConfigureServices function but getting same error
-
0
Hi,
The default approach dodesn't work. Could you modify your code by following the link I have shared ?
-
0
Hi,
The default approach dodesn't work. Could you modify your code by following the link I have shared ?
Please guide me at which place i need to modify the code, In which file and project.
I did not find class ServiceCollectionRegistrar
-
0
Hi,
Sorry, I think this class is defined in a different project. However, you can follow an approach as explained here https://aspnetzero.com/blog/persist-data-protection-keys-to-database.
-
0
Hi,
Sorry, I think this class is defined in a different project. However, you can follow an approach as explained here https://aspnetzero.com/blog/persist-data-protection-keys-to-database.
I think this is not relevant to lazy loading EF.
-
0
Hi @kansoftware,
The problem is related to the castle.core version. Abp supports to castle.core v4.4.1. Could you try again with Microsoft.EntityFrameworkCore.Proxies 6.* versions?