- Restore dependencies
- Install dotnet ef tools
dotnet tool install --global dotnet-ef
- Open a terminal and go to the of Data Project (where identity context exists)
- Add migrations
dotnet ef migrations add InitialMigrations -s ..\ProjectBase.Api\ProjectBase.Api.csproj
- Apply migrations
dotnet ef database update -s ..\ProjectBase.Api\ProjectBase.Api.çsproj
- Run the app