Useful command

Here are the commands that I personally use from time to time and I always use google to find it before having this documentation:

Commands below are copied from this link: .NET Core Cli

Install Entity Framework tool

I already have the tool in my machine, I only need to upgrade it with this command

dotnet tool install --global dotnet-ef

Upgrade Entity Framework tool

I already have the tool in my machine, I only need to upgrade it with this command

dotnet tool update --global dotnet-ef

Add new migration

For creating new table, updating existing table etc

dotnet ef migrations add [Migration Name]

Update database

After creating migration, database can be updated with this command

dotnet ef database update
An unhandled error has occurred. Reload 🗙