dotnet tool update --global dotnet-ef
dotnet add package Microsoft.Extensions.Configuration
dotnet add package Microsoft.Extensions.Configuration.UserSecrets
dotnet user-secrets init
dotnet user-secrets set ConnectionStrings:BlogCon "Host=localhost;Database=my_blog;Username=postgres;Password=postgres"
Replace the values in the connection string as per your local environment setup
dotnet ef migrations add InitialSchema
dotnet ef database update
dotnet watch run