CleanArchitecture
CleanArchitecture copied to clipboard
Unable to run migrations using the dotnet-ef tool
Describe the bug Unable to use dotnet-ef tool to create a migration because the presentation layer does not reference Microsoft.EntityFrameworkCore.Design.
To Reproduce Steps to reproduce the behavior:
- Follow instructions from Infrastructure/Readme.md to setup docker container and add the first migration
- See error
Expected behavior Able to create a migration using the dotnet-ef tool.
Screenshots If applicable, add screenshots to help explain your problem.
Running the migration with the API as startup

Running the migration with the Console as startup

Additional context Adding a reference to Microsoft.EntityFrameworkCore.Design to the API project fixes the problem.