parent
30b8f133b0
commit
a1dd155112
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue