Skip to content

Commit

Permalink
use shorthand flags in README
Browse files Browse the repository at this point in the history
  • Loading branch information
trulshj committed Jan 6, 2025
1 parent 39b4eee commit e56b5aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docker compose up -d database
# Update Database to latest schema and create tables:
cd backend/
dotnet tool install --global dotnet-ef # To install EF Core globally
dotnet ef database update --startup-project Api/ --project Infrastructure/
dotnet ef database update -s Api -p Infrastructure

# Start the web-server by either using the IDE launcher (launchSettings.json): Api:http
# ...or manually by terminal
Expand All @@ -30,10 +30,12 @@ dotnet run
To create new migrations or revert the current:
```shell
# Create a new
dotnet ef migrations add WhatIHaveChangedToTheModelHere --startup-project Api/ --project Infrastructure/
dotnet ef migrations add <WhatChangesHaveIMadeToTheModel> -s Api -p Infrastructure

# For example: dotnet ef migrations add AddedIsActiveFieldToCustomer

# Remove the current
dotnet ef migrations remove --startup-project Api/ --project Infrastructure/
dotnet ef migrations remove -s Api -p Infrastructure

```

Expand Down

0 comments on commit e56b5aa

Please sign in to comment.