Lisa
✅ Unable to create migration - 'Unable to resolve service for type 'DbContextOptions'
This is my first time creating migrations (never had a need until now), so please bear with me.
I'm trying to use
dotnet ef migrations add AMigrationName
to add a migration to my project, However, I get this error:
My startup looks like this:
And ConfigureDbContext is just:
My databasecontext looks like this:
What am I missing? How can I make sure the migration creator can access my dbcontextoptions at design time?2 replies