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/05/09 21:17:56
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
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之间的紧密联系.