Cài đặt:

dotnet tool install –global dotnet-ef

dotnet add package Microsoft.EntityFrameworkCore.Design

dotnet ef

Chạy lênh:

dotnet ef migrations add InitialCreate

dotnet ef database update