dotnet run --project=src/ERP.WebApi/ERP.WebApi.csproj
dotnet build --project=src/ERP.WebApi/ERP.WebApi.csproj
dotnet clean
dotnet restore
cd src/ERP.Web
ng serve
ng build
mkdir ERP
cd ERP
dotnet new sln -n=ERP
mkdir src
dotnet new classlib -o src/ERP.Domain
dotnet new classlib -o src/ERP.Infrastructure
dotnet new classlib -o src/ERP.Application
dotnet new webapi -o src/ERP.WebApi
dotnet new classlib -o src/ERP.DbMigrations
dotnet sln add src/ERP.Domain/ERP.Domain.csproj
dotnet sln add src/ERP.Infrastructure/ERP.Infrastructure.csproj
dotnet sln add src/ERP.Application/ERP.Application.csproj
dotnet sln add src/ERP.WebApi/ERP.WebApi.csproj
dotnet sln add src/ERP.DbMigrations/ERP.DbMigrations.csproj
dotnet add src/ERP.Infrastructure/ERP.Infrastructure.csproj reference src/ERP.Domain/ERP.Domain.csproj
dotnet add src/ERP.Application/ERP.Application.csproj reference src/ERP.Domain/ERP.Domain.csproj
dotnet add src/ERP.Application/ERP.Application.csproj reference src/ERP.Infrastructure/ERP.Infrastructure.csproj
dotnet add src/ERP.WebApi/ERP.WebApi.csproj reference src/ERP.Domain/ERP.Domain.csproj
dotnet add src/ERP.WebApi/ERP.WebApi.csproj reference src/ERP.Application/ERP.Application.csproj
dotnet add src/ERP.WebApi/ERP.WebApi.csproj reference src/ERP.Infrastructure/ERP.Infrastructure.csproj
dotnet add src/ERP.WebApi/ERP.WebApi.csproj reference src/ERP.DbMigrations/ERP.DbMigrations.csproj
dotnet add src/ERP.DbMigrations/ERP.DbMigrations.csproj reference src/ERP.Infrastructure/ERP.Infrastructure.csproj
cd src
ng new ERP.Web
In ERP.DbMigrations Project run below commands
// Install tool
dotnet tool install --global dotnet-ef
// Use this command to create new migration
dotnet ef migrations add InitialCreate --startup-project ../ERP.WebApi/ERP.WebApi.csproj
// Use this command to update database
dotnet ef database update
// Use this command to remove last migration
dotnet ef migrations remove