dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.57k stars 25.31k forks source link

EF migration commands misses the "add" command #33677

Open AndreKraemer opened 3 hours ago

AndreKraemer commented 3 hours ago

Description

In the section Update the database

there is the following code snipped which doesn't work:

dotnet ef migrations AddRatingField

If you run this command, you get the following error:

Unrecognized command or argument 'AddRatingField'

The issue can be fixed by adding the add-command like this:

dotnet ef migrations add AddRatingField

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/tutorials/movie-database-app/part-7?view=aspnetcore-8.0&pivots=vsc

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/tutorials/movie-database-app/part-7.md

Document ID

797772a3-9855-d0a1-282e-3cc089025fb6

Article author

@guardrex

github-actions[bot] commented 3 hours ago

😎🏖️🌴 Summertime! 🏐🏄‍♀️🦩

Stand by! A green dinosaur 🦖 (guardrex) will arrive shortly to assist.