I want to place Automapper profile in my Business Layer
问题 I've created a web api core 2.0 application. I've got my main app and the Business Layer. I want to place the automapper profile in the business layer so that all the mappings are made in the business layer. My business layer is just a class library project. Is this possible? or do I need to place all my mapping in a Profile class in the main app? Just a theoretical explanation can help. 回答1: Yes, it's possible but it depends on where the model classes reside. You can give each layer or