1
5
你列出的方法似乎没有任何意义。为什么要使方法getchildrenbyparent 确切地 包装存储库.listchildrenbyparent?它已经在正确的位置-在存储库中。只要在需要的地方使用repository.listchildrenbyparent。 |
2
2
其中一个思想过程是将核心功能域与查询域(报告、搜索等)分开。您添加的方法似乎用于报告或搜索目的。您应该直接调用存储库中的方法 |
Tony Raimo · 域实体是否应该调用存储库? 6 年前 |
Seb · DDD只读存储库返回“值对象” 6 年前 |
tlzg · 使用嵌套对象和大集合进行聚合根优化 6 年前 |
PatrickSJ · DDD,状态对象/值对象 6 年前 |
msmani · DDD更改聚合根id 6 年前 |
DuskMcDusk · 逻辑和性能中的聚合根冲突 6 年前 |