You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing the command "╰$ dotnet ef migrations add addauth --verbose --context MyIntIdentityContext --project Core.Infra.Postgres --startup-project Api
"I'm getting the error
Cannot create a 'DbContext' of type 'MyIntIdentityContext'. Exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Core.Infra.Postgres.EFContext.MyIntIdentityContext]' when trying to activate 'Core.Infra.Postgres.EFContext.MyIntIdentityContext'.' was thrown when trying to create an instance
I'm using .net 8
MyIntIdentityContext
CustomIdentityAndKeyConfig
Project Structure
MyIntIdentityContext
Expected behavior
I hope you can help me understand why when executing the command to create the migration I receive an error
The text was updated successfully, but these errors were encountered:
I haven't tested it yet, but it seems like it has something to do with the fact that I'm using .Net 8 or there's something missing from being implemented in the lib
Describe the bug
When executing the command "╰$ dotnet ef migrations add addauth --verbose --context MyIntIdentityContext --project Core.Infra.Postgres --startup-project Api
"I'm getting the error
Cannot create a 'DbContext' of type 'MyIntIdentityContext'. Exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Core.Infra.Postgres.EFContext.MyIntIdentityContext]' when trying to activate 'Core.Infra.Postgres.EFContext.MyIntIdentityContext'.' was thrown when trying to create an instance
I'm using .net 8
MyIntIdentityContext
CustomIdentityAndKeyConfig
Project Structure
MyIntIdentityContext
Expected behavior
I hope you can help me understand why when executing the command to create the migration I receive an error
The text was updated successfully, but these errors were encountered: