C
C#2y ago
barcode

❔ Reducing commands

Currently to migrate I have to run
dotnet ef migrations add {ProjectName} --project Project.Persistence --startup-project Project.Api
dotnet ef migrations add {ProjectName} --project Project.Persistence --startup-project Project.Api
is there a defined way to create "scripts" in visual studio solutions?
4 Replies
barcode
barcodeOP2y ago
I'd like to create a migrate.sh that just
./migrate.sh FixCategoryName
./migrate.sh FixCategoryName
Pobiega
Pobiega2y ago
.sh could work if you use gitbash, WSL or similar. Might want to consider using PowerShell or just a .bat file for this
JakenVeina
JakenVeina2y ago
you could in theory set that up as a build action, and then setup a special "Apply Migrations" build config
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server