This project was developed with .Net 6 framework. While developing the project, I used the N-Layer Architecture approach as the architectural approach.
There are 3 layers in the developed project:
-
Core Layer
In this layer, the models in the database were created. In addition interfaces of repository and service classes have been added. In addition, in this layer, the interface of the UnitOfWork class, which will perform all operations to be done with the Database through a single channel and keep it in memory, has been developed. Data Transfer Objects were created in order to request and respond to the data appropriately.
-
Data Layer
In this layer, DbContext class was created and migration operations were performed. In addition, the models created in the core layer were configured with the help of fluent api. Repository classes and UnitOfWork classes have been developed. Developed the UnitOfWork class, which will perform all operations with the database through a single channel and keep them in memory.
-
Service Layer
Service interfaces developed in the Core layer were implemented. Improved mapping classes used to transform data.
I used the following technologies while creating this API project.