Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 650 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 650 Bytes

win-it

Useful commands

For database migrations

Open CLI inside the project and change the directory to the DataAccess project using:

cd .\Data\DataAccess\

Then execute the two following commands:

dotnet ef migrations add initial --startup-project ..\..\Presentation\Presentation\Presentation.csproj

dotnet ef database update --startup-project ..\..\Presentation\Presentation\Presentation.csproj

For Database scaffolding

Use the following commands for database scaffolding:

Scaffold-DbContext "server=localhost;userid=root;password=root;database=winit" Pomelo.EntityFrameworkCore.MySql -OutputDir Models