如何将现有的数据库文件添加到我的 Windows Phone 7 应用程序中并从中读取数据? [英] How to add an existing database file into my windows phone 7 app and read data from it?

查看:20
本文介绍了如何将现有的数据库文件添加到我的 Windows Phone 7 应用程序中并从中读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加现有的数据库文件(例如:- x.sdf)并将数据库文件中存在的数据转储到手机的本地数据库中?

How to add a existing database file say (ex:- x.sdf) and dump the data present in the database file into phone's local database?

我希望在最终用户自行安装应用程序时执行此操作.

I want do this when the end user is installing the app itself.

推荐答案

检查 这篇 文章;在那里,您将看到如何使用您的应用程序部署只读数据库,以及您需要做什么才能使其在部署后可写!

Check the "Application Deployment" part of this article; there you'll see how you can deploy a readonly database with your application, and what will you need to do in order to make it writable once it is deployed!

这篇关于如何将现有的数据库文件添加到我的 Windows Phone 7 应用程序中并从中读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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