parent
eaa322e432
commit
971b805d36
|
@ -87,6 +87,7 @@ You need to create the database, and you'll use the EF Core [Migrations](xref:da
|
|||
Note: The version numbers shown above were correct at the time of writing.
|
||||
|
||||
Save your changes.
|
||||
<!-- Move the next two sections to an include -->
|
||||
|
||||
## Add initial migration and update the database
|
||||
|
||||
|
@ -107,7 +108,7 @@ Save your changes.
|
|||
* `dotnet ef migrations add Initial` Runs the Entity Framework .NET Core CLI migrations command and creates the initial migration. The parameter after "add" is a name that you assign to the migration. Here you're naming the migration "Initial" because it's the initial database migration. This operation creates the *Data/Migrations/\<date-time>_Initial.cs* file containing the migration commands to add the *Movie* table to the database.
|
||||
* `dotnet ef database update` Updates the database with the migration we just created.
|
||||
|
||||
You'll learn more about data model changes in the [Add a field](xref:tutorials/first-mvc-app/new-field) tutorial.
|
||||
You'll learn about the database and connection string in the next tutorial. You'll learn about data model changes in the [Add a field](xref:tutorials/first-mvc-app/new-field) tutorial.
|
||||
|
||||
[!INCLUDE[adding-model](../../includes/mvc-intro/adding-model3.md)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue