Hi @Mikhail
My question is, at what project should I conduct the mapping, at the Web API project or at the data access project/EF Core?
Both of the API project and the Data Access Project could use to do the mapping, it depends on your choice.
If the mapping needs to be done at the data access layer/EF Core, how can I access/recognize the model at the EF Core project since the EF core cannot reference the Web API (Mo circular reference)
If the mapping needs to be done at the data access layer/EF Core, you have to put the DTO model class in the Data Access Project.
If the mapping at the API project, the DTO model classes are in the API project and the data base entities are in the Data Access project, before calling the Data Access project's method, you have to convert the DTO model to the database entity, and then execute the related method.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion