I have written a simple application and when I navigate to my edit page the below error pops up.
Microsoft.EntityFrameworkCore.Query[10100]
<
Here is what actually worked for me in a situation where I was getting the same error as above when trying to access the data in Startup.cs to run some startup data building functions on server load, rather than a specific Controller action:
IServiceScope scope = provider.CreateScope();
YourDbContext context = scope.ServiceProvider.GetRequiredService();
In the Configure method of Startup.cs, with IServiceProvider included as a parameter:
public async void Configure(IApplicationBuilder app, IWebHostEnvironment env, IServiceProvider provider)
Just including that for anyone who wants to do the same in Startup.cs.