Skip to content

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

Description

@jcjiang

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions