Skip to content

Error when migrations init DB #1

@leezinfc123

Description

@leezinfc123

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 !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions