Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use shorthand flags in README #560

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading