From 4848915c0db6ca933ad0a70de9e53aa5cef8e80e Mon Sep 17 00:00:00 2001 From: Truls Henrik <39614013+trulshj@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:34:02 +0100 Subject: [PATCH] use shorthand flags in README (#560) --- backend/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/README.md b/backend/README.md index 91ce3d01..bd73565d 100644 --- a/backend/README.md +++ b/backend/README.md @@ -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 @@ -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 -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 ```