minimal-apis.github.io icon indicating copy to clipboard operation
minimal-apis.github.io copied to clipboard

Tutorial Three: Cannot do first migration with EF Core migration tool

Open jcjiang opened this issue 3 years ago • 0 comments

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:

  1. dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 6.0.0-preview.6.21352.1
  2. dotnet tool install --global dotnet-ef
  3. dotnet add package Microsoft.EntityFrameworkCore.Design --version 6.0.0-preview.6.21352.1
  4. Set connection string
  5. Add context to services
  6. Run dotnet ef migrations add InitialCreate
  7. See logs

Expected behavior I expect the migration to complete successfully image

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

image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

jcjiang avatar May 06 '22 17:05 jcjiang