21 lines
424 B
Markdown
21 lines
424 B
Markdown
# Requirements
|
||
Install ef:
|
||
|
||
dotnet tool install --global dotnet-ef
|
||
|
||
# Used cmd´s
|
||
## Start containers
|
||
docker compose up
|
||
## Create the initial database
|
||
dotnet ef database update
|
||
## Create an migration script
|
||
dotnet ef migrations add <name>
|
||
|
||
## Docker
|
||
### force compose rebuild
|
||
docker-compose build --no-cache
|
||
|
||
|
||
TODO:
|
||
- Backup docker volume database
|
||
- run "dotnet ef database update" if no database exist. |