C#C
C#2y ago
47 replies
Sun

Unable to create DbContext

I'm trying to create by db tables right now, still in the start of a project.
I have a
ApplicationDbContext
in my Infrastructure project and I'm running
dotnet ef migrations Initial
, that's all.
Project is public for now, could be seen here (yes, I know it's messy, I don't like clean architecture, I mostly don't know how to do it, not my style of coding)


Error Traceback:
Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Ilanos.Infrastructure.ApplicationDbContext]' while attempting to activate 'Ilanos.Infrastructure.ApplicationDbContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
GitLab
GitLab.com
Sun / Ilanos · GitLab
Was this page helpful?