DataService.commitRequiredOn() 递归检查?
我们使用 LCDS 和 DataService 类中的“commitRequiredOn”方法来检查实体是否有待处理的更改。然而,“commitRequiredOn”似乎并没有检查对象的完整图,而只是检查对象本身。目前,我们已经对完整的对象图实现了递归检查,但这似乎是开箱即用的功能。
我在这里遗漏了一些东西,还是没有内置的方法来递归检查实体以查看它是否脏?
We're using LCDS and the "commitRequiredOn" method in the DataService class to check if there are pending changes for an entity. However, it seems like "commitRequiredOn" does not check the complete graph of an object, but just the object itself. For now, we have implemented a recursive check on the complete object graph, but this seems like functionality that should come out of the box.
Am I missing something here, or is there just no built-in way to recursively check an entity to see if it's dirty or not?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可以确认 commitRequiredOn 仅检查对象本身。但还有属性 DataService.commitRequired (这正在检查数据服务管理的所有对象) - 也许您可以使用它。
I can confirm that commitRequiredOn is checking only the objects itself. But there is also the property DataService.commitRequired (and this is checking for all the objects managed by the dataservice) - maybe you can use it.