From 2e61e287e220eddd5f3f4cd9147aa6417cfd9236 Mon Sep 17 00:00:00 2001 From: jackiebecker Date: Tue, 12 Sep 2017 07:23:30 -0700 Subject: [PATCH] Update adding-model.md (#4235) * Update adding-model.md Error is raised when Install-Package command is run when package already exists in project. Provided details for how to check if package is already installed. * Minor edits --- aspnetcore/tutorials/first-mvc-app/adding-model.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/tutorials/first-mvc-app/adding-model.md b/aspnetcore/tutorials/first-mvc-app/adding-model.md index 1b647cc2cc..d212d36131 100644 --- a/aspnetcore/tutorials/first-mvc-app/adding-model.md +++ b/aspnetcore/tutorials/first-mvc-app/adding-model.md @@ -102,7 +102,7 @@ Add-Migration Initial Update-Database ``` -Note: See the [CLI approach](#cli) if you have problems with the PMC. +**Note:** If you receive an error with the `Install-Package` command, open NuGet Package Manager and search for the `Microsoft.EntityFrameworkCore.Tools` package. This allows you to install the package or check if it is already installed. Alternatively, see the [CLI approach](#cli) if you have problems with the PMC. The `Add-Migration` command creates code to create the initial database schema. The schema is based on the model specified in the `DbContext`(In the *Data/MvcMovieContext.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.