Update migrations.md (#18912)

* Update migrations.md

* Update migrations.md
pull/18913/head
Rick Anderson 2020-06-22 16:51:47 -10:00 committed by GitHub
parent 30b8f133b0
commit a1dd155112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -68,10 +68,13 @@ Save your changes and build the project. Then open a command window and navigate
Enter the following command in the command window:
```dotnetcli
dotnet tool install --global dotnet-ef
dotnet ef migrations add InitialCreate
```
You see output like the following in the command window:
`dotnet tool install --global dotnet-ef` installs `dotnet ef` as a [global tool](/ef/core/miscellaneous/cli/dotnet).
In the preceding commands, output similar to the following is displayed:
```console
info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
@ -79,9 +82,6 @@ info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
Done. To undo this action, use 'ef migrations remove'
```
> [!NOTE]
> If you see an error message *No executable found matching command "dotnet-ef"*, see [this blog post](https://thedatafarm.com/data-access/no-executable-found-matching-command-dotnet-ef/) for help troubleshooting.
If you see an error message "*cannot access the file ... ContosoUniversity.dll because it is being used by another process.*", find the IIS Express icon in the Windows System Tray, and right-click it, then click **ContosoUniversity > Stop Site**.
## Examine Up and Down methods