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
pull/4260/head
jackiebecker 2017-09-12 07:23:30 -07:00 committed by Scott Addie
parent 368aabde4d
commit 2e61e287e2
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ Add-Migration Initial
Update-Database 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. 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.