Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 782 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 782 Bytes

Clean Web API template (ASP .NET Core)

Simple clean web API template with setup for postgresql. Template is using:

  • Entity Framework with Postgresql
  • NUnit
  • Automapper
  • MediatoR
  • Moq
  • SwaggerUI

Template is based on CleanArchitecture.

Using dotnet EF

To install entity framework globaly use:

dotnet tool install --global dotnet-ef

After installing you can use it to generate new migration via:

dotnet ef migrations add "MigrationName" --project src\Infrastructure --startup-project src\WebUI --output-dir Persistence\Migrations

Aside for creating new migrations you can also remove the last one by using remove command:

dotnet ef migrations remove --project src\Infrastructure