-
Install dotnet with version 3.1.201. Please be advised that ClassTranscribe Database may not run properly on newer version. Install instruction can be found at https://github.com/dotnet/core/blob/main/release-notes/3.1/3.1.3/3.1.201-download.md
-
Install dotnet-ef 3.1.4 by running
dotnet tool install --global dotnet-ef --version 3.1.4
- Go to the ClassTranscribeDatabase directory
cd WebAPI/ClassTranscribeDatabase
- Create a new migration by running
(also try dotnet ef may work for you)
dotnet-ef migrations add <name of migration>
dotnet-ef database update
To remove,
dotnet-ef migrations remove
- Rebuild the solution
dotnet build --no-restore
- Rebuild API image
docker build -t api -f API.Dockerfile .
- Run Docker compose to see the changes
docker compose up api