minimal-apis.github.io
minimal-apis.github.io copied to clipboard
Tutorial Three: Cannot do first migration with EF Core migration tool
Describe the bug
In Tutorial Three: Add a Database, I run into an error when I run dotnet ef migrations add InitialCreate.
To Reproduce Steps to reproduce the behavior:
-
dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 6.0.0-preview.6.21352.1 -
dotnet tool install --global dotnet-ef -
dotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.0-preview.6.21352.1 - Set connection string
- Add context to services
- Run dotnet ef migrations add InitialCreate
- See logs
Expected behavior
I expect the migration to complete successfully

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]