Tuesday, October 29, 2024

.Net seed migration

dbcontext command lines:

  1. Using the Package Manager Console in Visual Studio:

Add-Migration initial 

remove-database

update-database

  1. Using the .NET Command Line Interface (.NET CLI):
dotnet ef migrations add Initial
dotnet ef database update

No comments: