Metro 风格 Windows 8 应用程序支持本地数据库访问吗?

发布于 2024-12-28 06:35:42 字数 161 浏览 3 评论 0原文

我想构建一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你手 2025-01-04 06:35:42

不,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文