Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.02 KB

File metadata and controls

43 lines (34 loc) · 1.02 KB

Commands required during the lab

Entity Framework Core

solution/project compilation

dotnet build

solution/project clean

dotnet clean

solution/project restore

dotnet restore

update Entity Framework Tools to given version

dotnet tool update --global dotnet-ef --version 6.0.9

create migration with name Initial

dotnet ef migrations add Initial --project WebStore.DAL/WebStore.DAL.csproj --startup-project WebStore.Web/WebStore.Web.csproj

remove the newest migration

dotnet ef migrations remove --project WebStore.DAL/WebStore.DAL.csproj --startup-project WebStore.Web/WebStore.Web.csproj

update database to newest migration

dotnet ef database update --project WebStore.DAL/WebStore.DAL.csproj --startup-project WebStore.Web/WebStore.Web.csproj

drop database

dotnet ef database drop --project WebStore.DAL/WebStore.DAL.csproj --startup-project WebStore.Web/WebStore.Web.csproj