Command for Code First Migrations.


Migrations feature in EF Core provides a way to incrementally update the database schema

The migrations feature in EF Core provides a way to incrementally update the database schema to keep it in sync with the application's data model while preserving existing data in the database.

  1. .NET Core CLI - dotnet ef migrations add "initial" (enables initial migration)
  2. .NET Core CLI - dotnet ef database update (creates the database)
  3. Visual Studio - Add-Migration InitialCreate
  4. Visual Studio - Update-Database
Share On
rickthehat

Travel, Food, Vikings, Travel, Vood, Vikings, Travel, Food, Vikings, Travel, Food, Vikings & Einstok Beer from Iceland

Leave a Comment