简体   繁体   中英

Is this the correct way/structure of DDD implementation in ASP.NET Core?

this may not be the place to ask, but since I am very new at this, can you please tell me if this is the correct way of structuring Domain-Driven-Design in ASP.NET Core.

在此处输入图像描述

To be more specific the way I structured it is based on official Microsoft documentation site.

Depo.API representing Application Layer referencing Depo.Domain and Depo.Infrastructure

Depo.Infrastructure referencing Depo.Domain only.

Depo.Domain being the core of application.

Please let me know or suggest me anything, and I apologize if this doesn't meet the community guidelines.

I think your implementation is almost correct, but to improve the architecture you can add a layer called SERVICE layer to implement Business Logic. Also, move the Validators and Mapper to the Infrastructure layer. The entire API layer contains only controllers and startup settings. also You can also use the following link: docs.microsoft.com reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM