0 results found
An attempt was made to use the model while it was being created. A DbContext instance cannot be used inside 'OnModelCreating' in any way that makes use of the model that is being created.
I'm working with Entity Framework Asp.net Core 3.1. I wanna get some data from the database but. The result doesn't contain any relational information
Error: 'AddDbContext' was called with configuration, but the context type 'MyDbContext' only declares a parameterless constructor. This means that the configuration passed to 'AddDbContext' will never be used.