XML 到 Datamodel 同步策略
我有一个 XML 数据源,正在加载/刷新。
我正在从此源填充数据模型,并希望管理同步问题
,例如能够在项目被删除、其值增加/减少、更改...等时通知 GUI/用户。
我想知道是否有一种标准方法可以做到这一点?
在我看来,模型/数据对象将需要单独实现更新/更改标记代码。
我将尽我所能来尽可能减少依赖性,但我正在寻找想法,并且我假设这是以前已经被广泛采用的基础。
I have an XML data source, which I'm loading / refreshing.
I'm populating a data model from this source and would like to manage synchronisation issues
e.g. being able to notify the GUI/User when items have been removed, had their values increased / decreased, changed... etc.
I'm wondering if there is a standard way of doing this?
It seems to me that the model / data objects will need to individually implement update / change flagging code.
I'll be doing what I can to reduce dependency as much as possible, but I'm looking for ideas, and I'm assuming this is ground that has been well trodden before.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以右键单击“将 XML 导入到 Access”中,它会将其拆分为一堆不同的表。
我之前已经在商业规模上完成过此操作.. 对于大量的 SQL 和 XML.. 它工作得很好。
you can right-click import XML into Access, and it will split it into a bunch of different tables.
I've done this on a commercial scale before.. for tons and tons of SQL and XML.. it worked allright.