I could let the Customer have an OrderList property and implicitly ...I could let the Customer have an OrderList property and implicitly talk to the Repository,but I think the explicitness is better here.I also avoid coupling between the Customer and
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 11:26:37
I could let the Customer have an OrderList property and implicitly ...I could let the Customer have an OrderList property and implicitly talk to the Repository,but I think the explicitness is better here.I also avoid coupling between the Customer and
I could let the Customer have an OrderList property and implicitly ...
I could let the Customer have an OrderList property and implicitly talk to the Repository,but I think the explicitness is better here.I also avoid coupling between the Customer and the OrderRepository.
---------------------
OrderList
Repository
OrderRepository
---------------------
不用翻译
I could let the Customer have an OrderList property and implicitly ...I could let the Customer have an OrderList property and implicitly talk to the Repository,but I think the explicitness is better here.I also avoid coupling between the Customer and
我可以让客户有一个OrderList属性,隐含地和Repository交流,但是我觉得明显(交流)在这里比较好.我还避免了客户和OrderRepository之间的紧密联系.