0

We are planning to developing a software following Domain Driven Design inspiring by the Red (EE) and Blue (VV) ddd books. The business is not that complicated. It is possible to avoid inheritances for all concrete classes. The goal is to feel the importance of Domain Model. So is it OK to use POCO classes which will be inherited from Entity? Or It will be better to create the domain model and use DTO or repository to transfer values to domain model?

4

1 回答 1

0

如果您的目标是“体验” DDD,那么您可能应该创建域对象而不是依赖实体。

如果您希望将此过程中的任何学习扩展到其他更复杂且无法采用此捷径的代码库,则尤其如此。

于 2014-07-09T17:11:55.040 回答