Skip to content

Instantly share code, notes, and snippets.

@musukvl
Created December 26, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save musukvl/94fb19e606236fc9220be690c07ecd9c to your computer and use it in GitHub Desktop.
Save musukvl/94fb19e606236fc9220be690c07ecd9c to your computer and use it in GitHub Desktop.
Add Migration and update db EF Core
dotnet ef migrations add InitialCreate --context WaypointDbPgSqlContext --output-dir Migrations/pgSql -- Host=localhost;Username=postgres;Password=admin123;Database=waypoint_db
dotnet ef database update --context WaypointDbPgSqlContext --connection "Host=localhost;Username=postgres;Password=admin123;Database=waypoint_db"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment