- EF Core for M1 : https://stackup.hashnode.dev/ef-migrations-visual-studio-mac
- Ideally one DbContext for small app
- To update the model or adding new field steps;
- Add the field to the model definition
- Create a migration using Add-Migration (VS), dotnet ef migrations NameOfMigration --context IfManyDBContext
- Update database by using Update-Database (VS), dotnet ef database update
Will be updated too
No comments:
Post a Comment