Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会推荐SupplierDto或SupplierLegalOfficeDto。DTO 代表数据传输对象,它通常用于丰富的模型(更多在这里)。
SupplierDto
SupplierLegalOfficeDto
此外,您不应该检查suppliersnull 因为存储库总是返回一个非 null 列表。
suppliers
最后,我采用了后缀Aggregator,遵循领域驱动设计的措辞。
Aggregator