This is a template of what I see a generic service could be. In my production development I use projects with similar structure. Feel free to investigate and use the template if it meets your requirements.
Solution consists of following projects:
- Service.Template.Repository.Migrations.csproj contains code to apply database structure based on FluentMigrator library.
- Service.Template.Repository.csproj contains repository layer code (incarcerates code working with database) using linq2db ORM.
- Service.Template.Host.csproj is the main project containing api controllers.
- Service.Template.Client.csproj represents ready to use client for consuming the api.
- Service.Template.Tests.UnitTests.csproj contains unit tests for the project.