Friday, July 22, 2022

Note : Just bookmarking my .Net 6 journey of resources - July 23 notes

  •  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