Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when migrations init DB #1

Open
leezinfc123 opened this issue Dec 18, 2024 · 0 comments
Open

Error when migrations init DB #1

leezinfc123 opened this issue Dec 18, 2024 · 0 comments

Comments

@leezinfc123
Copy link

I try to run command migration DB but i have an issue when i run command:

dotnet ef migrations add InitialCreate

output :

Build started...
Build succeeded.

Unable to create a 'DbContext' of type ''. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[Authentication.Infra.Data.ApplicationDbContext]' while attempting to activate 'Authentication.Infra.Data.ApplicationDbContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time

could you answer me if i had wrong in some step, and could you add a guideline to run migrationDB in readme.md

Thank you so much !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant