diff --git a/aspnetcore/tutorials/razor-pages/model.md b/aspnetcore/tutorials/razor-pages/model.md index 395aaf02f7ad..46c8c99c8e7d 100644 --- a/aspnetcore/tutorials/razor-pages/model.md +++ b/aspnetcore/tutorials/razor-pages/model.md @@ -59,6 +59,14 @@ Add-Migration Initial Update-Database ``` +Alternatively, the following .NET Core CLI commands can be used: + +```console +dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design +dotnet ef migrations add Initial +dotnet ef database update +``` + The `Install-Package` command installs the tooling required to run the scaffolding engine. The `Add-Migration` command generates code to create the initial database schema. The schema is based on the model specified in the `DbContext` (In the *Models/MovieContext.cs* file). The `Initial` argument is used to name the migrations. You can use any name, but by convention you choose a name that describes the migration. See [Introduction to migrations](xref:data/ef-mvc/migrations#introduction-to-migrations) for more information.