简体   繁体   English

如何在wp8中更新数据文件

[英]How to update data file in wp8

I'm quite new to this, so please bear with me if the answer is obvious. 我对此很陌生,所以如果答案很明显,请忍受。

I'm planning an app with employee data. 我正在计划一个包含员工数据的应用程序。 It's only purpose is to be able to search for employee data, read only and data will (originally) reside in an .xml file 唯一的目的是能够搜索员工数据,只读数据,并且数据(最初)将驻留在.xml文件中

However, employees come and go, so which approach would be the best, to keep the data file updated? 但是,员工来来往往,那么哪种方法最好,以便保持数据文件的更新?

It's simply a question of where to place the data file in WP8's localstorage so that it can be replaced with a newer file and how to accomplish this operation. 这只是将数据文件放在WP8的本地存储位置的问题,以便可以用较新的文件替换它,以及如何完成此操作。

No SD-card on the phones. 手机上没有SD卡。

And preferrably, no server involved if possible. 最好是,如果可能的话,不涉及任何服务器。 Just a plain delete old file, add new file. 只是一个普通的删除旧文件,添加新文件。

There is a lot of limitations afaik, presumably because of security reasons, which is fine with me, but I'm getting more and more confused reading posts about the subject. afaik有很多限制,大概是出于安全原因,这对我来说很好,但是我对这个主题的阅读越来越困惑。

As I haven't found any, I might suspect that it's not possible and that the easiest way is to update the app in Windows Phone store and ask the users to get the updated app from there. 由于我还没有找到,我可能怀疑这是不可能的,最简单的方法是在Windows Phone应用商店中更新应用程序,并要求用户从那里获取更新的应用程序。

Any suggestions will be appreciated. 任何建议将不胜感激。

How about IsolatedStorage. 隔离存储如何。 from here: Are windows phone storage secure from external access? 从这里开始: Windows Phone存储是否可以从外部访问安全?

During development your data can be accessed by other developers via Isolated Storage Tool (you can use fake data during development). 在开发过程中,其他开发人员可以通过隔离存储工具访问您的数据(您可以在开发过程中使用假数据)。 But after application is installed from Marketplace it is not simple to access to an isolated storage of your application. 但是从Marketplace安装应用程序后,访问应用程序的隔离存储并不简单。 In common case an application isolated storage is completely inaccessible for users. 在通常情况下,用户完全无法访问应用程序隔离的存储。 But of course it doesn't mean that your data is completely secured and encryption is a good point to protect your data. 但是,当然这并不意味着您的数据是完全安全的,加密是保护数据的好方法。 Follow by this link to get more info concerning data encryption in WP8 http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487164(v=vs.105).aspx 通过此链接获得有关WP8中数据加密的更多信息http://msdn.microsoft.com/zh-cn/library/windowsphone/develop/hh487164(v=vs.105).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM