Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 430 Bytes

migrations.md

File metadata and controls

12 lines (10 loc) · 430 Bytes

Setup

  • add Nuget-Package Microsoft.EntityFrameworkCore.Design to project where migration is required
  • make sure that DbContext class has parameterless constructor
  • install ef tools dotnet tool install --global dotnet-ef
  • update ef tools dotnet tool update --global dotnet-ef
  • verify installation dotnet ef

add migration

dotnet ef migrations add <MigrationName> --project Backend