ShadyNagy.ApiTemplate 2.0.1

dotnet new install ShadyNagy.ApiTemplate::2.0.1
This package contains a .NET Template Package you can call from the shell/command line.

.NET Core publish to nuget ShadyNagy.ApiTemplate on NuGet NuGet License

ShadyNagy.ApiTemplate

A starting point for Clean Architecture Endpoints with ASP.NET Core. Clean Architecture is just the latest in a series of names for the same loosely-coupled, dependency-inverted architecture. You will also find it named hexagonal, ports-and-adapters, or onion architecture.

Give a Star! ⭐

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Or if you're feeling really generous, we now support GitHub sponsorships - see the button above.

EF Migrations Commands

Ensure the tool EF was already installed. You can find some help here

setx PATH "%PATH%;C:\Users\USER_NAME\.dotnet\tools" 
dotnet tool install --global dotnet-ef

Add a new migration (from the ShadyNagy.ApiTemplate.Api folder):

dotnet ef migrations add MIGRATIONNAME -c appdbcontext -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj -o Data/Migrations

Update AppDbContext model (from the ShadyNagy.ApiTemplate.Api folder):

dotnet ef database update -c appdbcontext -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj

Generate Idempotent Update Script (for production)(from the ShadyNagy.ApiTemplate.Api folder):

dotnet ef migrations script -c AppDbContext -i -o migrate.sql -p ../ShadyNagy.ApiTemplate.Infrastructure/ShadyNagy.ApiTemplate.Infrastructure.csproj -s ShadyNagy.ApiTemplate.Api.csproj

Some CLI

dotnet format whitespace
dotnet format style

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 2,214 8/19/2022
2.0.0 1,309 8/18/2022
1.7.1 1,378 8/8/2022
1.7.0 1,395 8/8/2022
1.6.3 1,280 8/5/2022
1.6.2 1,340 8/5/2022
1.6.1 1,454 8/4/2022
1.6.0 1,315 8/4/2022
1.5.8 1,438 8/3/2022
1.5.7 1,357 8/1/2022
1.5.6 1,307 7/26/2022
1.5.5 1,579 7/23/2022
1.5.4 1,304 7/23/2022
1.5.3 1,316 7/23/2022
1.5.2 1,495 7/23/2022
1.5.1 1,381 7/23/2022
1.5.0 1,368 7/17/2022
1.4.7 1,331 7/13/2022
1.4.6 1,600 7/5/2022
1.4.5 1,375 7/5/2022
1.4.4 1,292 7/2/2022
1.4.3 1,418 7/2/2022
1.4.2 1,447 6/27/2022
1.4.1 1,267 6/27/2022
1.4.0 1,430 6/27/2022
1.3.0 1,334 6/27/2022
1.2.1 1,474 6/27/2022
1.2.0 1,614 6/27/2022
1.1.0 1,324 6/26/2022

Authorized Endpoint added (JWT Token).