Update database instructions to work in .NET Core 3.0
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
This commit is contained in:
@@ -61,6 +61,7 @@ You can also run the samples in Docker (see below).
|
|||||||
|
|
||||||
```
|
```
|
||||||
dotnet restore
|
dotnet restore
|
||||||
|
dotnet tool restore
|
||||||
dotnet ef database update -c catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
|
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
|
dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj
|
||||||
```
|
```
|
||||||
|
|||||||
12
src/Web/.config/dotnet-tools.json
Normal file
12
src/Web/.config/dotnet-tools.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"isRoot": true,
|
||||||
|
"tools": {
|
||||||
|
"dotnet-ef": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"commands": [
|
||||||
|
"dotnet-ef"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user