******According to Clean Architecture*******
a) Core Layer: Core Layer is independent i.e core layer does not depend on any other layer.
b) Appliction Layer: Application layer depends on Core layer. To do this, add referance of core layer into Application layer.
- Add folder named Interfaces
c) Logging Layer: Logging layer depends on Application layer. To do this, add referance of Application layer into Logging layer.
And add log4net nuget package in this layer.
d) Infrastructure Layer: Infrastructure layer depends on both Application and Core layer. To do this, add referance of both layer into infrastructure layer.
- Add folder named Repository
- Add folder named Dapper
- Install nuget package : Dapper
- Install nuget package : Microsoft.Extensions.Configuration
- Install nuget package : Microsoft.Extensions.DependencyInjection.Abstractions
- Install nuget package : System.Data.SqlClient
e) Presentation Layer: In this layer I have used ASP.NET Core Web API project. Presentation layer depends on all layer. To do this, add referance of Application,Core, Infrustructure and Logging layer into this layer.