将 WCF 数据保存到隔离存储并在 WP7 中读取
如何将 WCF 数据或 Odata 存储到我的 WP7 独立存储中,并在以后正确读取这些对象?
How can I store WCF Data or Odata to my WP7 isolated storage and also correctly read these objects later on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这是 CTP,但考虑到标题,它的工作与您的要求有很大关系:
从 WP7 CTP 访问 WCF 数据服务
这是一篇有关如何保存到独立存储的文章:
使用独立存储
然后当然查看 MSDN:
如何执行隔离存储任务
I know this is CTP but its work taking a look considering the title has everything to do with what you asked:
Accessing WCF Data Services from WP7 CTP
Here's an article on how to save to isolated storage:
Working With Isolated Storage
Then of course check MSDN:
How to perform Isolated Storage Tasks
我知道您不想听到这个,但这取决于数据以及您以后想要如何访问它。
例如,将数据存储在数据库中可能是有意义的。
您很可能只想序列化响应并将其存储在文件中。然后要检索它,只需从文件中读取并反序列化即可。
I know you don't want to hear this but it depends on the data and how you want to access it later.
For instance it may make sense to store the data in a database.
In all likelihood you will probably just want to serialize the response and store it in a file though. Then to retrieve it, just read from the file and deserialize.