Metro 风格 Windows 8 应用程序支持本地数据库访问吗?
我想构建一个 Metro 风格的 win 8 应用程序,它需要访问本地数据库(安装在用户电脑上)的信息,例如 sql express。
当前的 win 8 beta 版本似乎不支持这一点。微软是否发布了有关是否支持此功能的任何信息?像 ado.net、实体框架、linq sql 这样的东西?
I want to build a metro style win 8 app which needs to access a local database (installed on the users pc) of information such as sql express.
The current beta builds of win 8 dont seem to support that. Has Microsoft released any info on whether this will be supported? Something like ado.net, entity framework, linq sql?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,Windows 8 Metro 风格应用程序不支持连接到本地数据库。也就是说,您将无法使用一种可以连接到服务器 X 的连接字符串。这与“市场存储”原则有关,即应用程序应该开箱即用,无需配置数据库连接。
可能会支持本地数据库,如 Windows Phone 7 (SQL CE) 中,其上有 Linq to sql。
如果您想访问位于中央位置的数据库,则必须使用可以由 Metro 风格应用程序使用的 Web 服务公开数据库中的数据。
No, Windows 8 Metro style apps will not support connecting to a local database. That is to say, you will not be able to use a kind of connectionstring where you can say connect to server X. This has to do with the "Market store" principle that applications should work out of the box without configuring a database connection.
Probably there will be support for a local database as in Windows Phone 7 (SQL CE) with Linq to sql on top of it.
If you would like to access a database that's in a central location, than you will have to expose the data from the database with webservices which can be consumed by your metro style application.