Added migration commands

This commit is contained in:
Thorsten Sommer 2022-06-12 17:14:21 +02:00
parent d06cca1ce3
commit 96c34e2947
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
@echo off
set /p migrationName="Please enter the new migration's name: "
dotnet tool update --global dotnet-ef
dotnet ef migrations add %migrationName%

View File

@ -0,0 +1,4 @@
@echo off
set /p migrationName="Please enter the migration's name which should be the **ACTIVE** one: "
dotnet tool update --global dotnet-ef
dotnet ef database update %migrationName%