- Migration commands are executed in this layer
- This layer uses models to access data from db
- Controllers are present here
- We add reference to above two layers in this project
.
├── DataAccess
│ ├── Context
│ │ └── WorkDBContext.cs
│ ├── Migrations
│ └── Models
│ ├── Department.cs
│ └── Employee.cs
├── CompanyService
│ ├── Interfaces
│ │ ├── IDepartmentService.cs
│ │ └── IEmployeeService.cs
│ └── Services
│ ├── DepartmentService.cs
│ └── EmployeeService.cs
├── WebAPI
│ ├── Controllers
│ │ ├── DepartmentController.cs
│ │ └── EmployeeController.cs
│ ├── Photos
│ ├── Properties
│ │ └── launchSettings.cs
│ ├── Program.cs
│ ├── Startup.cs
│ └── appsettings.json
└── ...