Download the latest SDK .NET (v9.0.1) here: SDK .NET
Check if it's properly installed by running:
dotnet --version
Install globally dotnet-ef to its latest version (matching your .NET major version v9.0.1)
Here is a link: dotnet-ef
Run a migration update, it will create the database:
dotnet ef database updateTo start the api server, make sure you're in the webapi folder in your terminal and run:
dotnet run
The webapi server is launched ! :D
The app is running on http://localhost:5090. If you go to this URL, you'll get the swagger.
To add migrations, run:
dotnet ef add migration-name -o Data/MigrationsTo drop the database, run:
dotnet ef database dropthen run update:
dotnet ef database update