Created
December 26, 2020 15:07
-
-
Save musukvl/94fb19e606236fc9220be690c07ecd9c to your computer and use it in GitHub Desktop.
Add Migration and update db EF Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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