有没有办法使用Web服务/推送通知更新本地应用程序数据库? [英] is there a way to update local app database using a webservice / push notification?

查看:67
本文介绍了有没有办法使用Web服务/推送通知更新本地应用程序数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用多个数据库,我更新它们的唯一方法是提交应用程序的新更新并覆盖IsolatedStorage中的副本。是否有关于如何使用Web服务执行此操作的教程?我一直在查看一些Azure
教程,但我还没有看到我推送数据库更新或类似的东西。



Michael DiLeo

解决方案

没有直接的数据库同步机制.. 。


您需要在代码中编写自己的同步机制。 即查询来自Web服务的数据并插入/编辑/删除本地数据库中的相应记录。


类似于此博客中描述的内容:
http: //blogs.msdn.com/b/writingdata_services/archive/2011/11/14/sync-ing-odata-to-local-storage-in-windows-phone-part-1.aspx


My app utilizes multiple databases and the only way I have of updating them is to submit a new update of the app and overwrite the copy in IsolatedStorage. Are there any tutorials on how to use a web service to do this? I've been looking over some Azure tutorials, but I haven't seen anyway for me to push database updates or anything like that.


Michael DiLeo

解决方案

There is no direct data base sync mechanism...

You would need to write your own sync mechanism in your code.  i.e. query the data from a web service and insert/edit/delete the appropriate records from your local database.

something like what is described in this blog: http://blogs.msdn.com/b/writingdata_services/archive/2011/11/14/sync-ing-odata-to-local-storage-in-windows-phone-part-1.aspx


这篇关于有没有办法使用Web服务/推送通知更新本地应用程序数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆