Student CRUD application using .NET 6 MVC as the MVC framework and EF Core 6 as ORM.
-
Install the dotnet ef core CLI globally. More info here
dotnet tool install --global dotnet-ef
-
Open a terminal in the Infrastructure directory (i.e the directory where the DbContext file resides).
-
Add the migration
dotnet ef migrations add InitialMigration --startup-project ../Students.Web/Students.Web.csproj
-
Update the database
dotnet ef database update --startup-project ../Students.Web/Students.Web.csproj