Or do you move all the validation code into the services tier, removing it from the domain class that should be the owner of that knowledge?
或者您可以将所有验证代码移入到服务层,然后从应当是该知识所有者的域类中删除它吗?
2
We have also described how having a "knowledge of the structure" enables SDOs to provide a single API for the complete life cycle of the data, including creation and validation.
我们还介绍了如何让SDO使用“结构知识”为数据的完整生命周期(包括创建和验证)提供单一的API。
3
The knowledge mode focuses on the expression, reasoning and validation of design constraints other than data of primitive types by tradition.