Skip to content

Commit

Permalink
Update database instructions to work in .NET Core 3.0
Browse files Browse the repository at this point in the history
In the 3.0 SDK `dotnet ef` needs to be installed. This updates the instructions/tool config to do so.

More info: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet
  • Loading branch information
gregg-miskelly committed Nov 11, 2019
1 parent 4442015 commit 0fcf43e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ You can also run the samples in Docker (see below).

```
dotnet restore
dotnet tool restore
dotnet ef database update -c catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
```
Expand Down
12 changes: 12 additions & 0 deletions src/Web/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "3.0.0",
"commands": [
"dotnet-ef"
]
}
}
}

0 comments on commit 0fcf43e

Please sign in to comment.