Migrations
Migrations allow you to keep your database schema in sync with your C# model.
Commands:
-
Create a migration: bash dotnet ef migrations add InitialCreate
-
Update the database: bash dotnet ef database update
.NET Zero to Hero: Master C# and Modern App Development
Migrations allow you to keep your database schema in sync with your C# model.
Create a migration: bash dotnet ef migrations add InitialCreate
Update the database: bash dotnet ef database update