WinRT System.Data - 连接到 SQL [英] WinRT System.Data - Connect to SQL

查看:20
本文介绍了WinRT System.Data - 连接到 SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想确保我没有遗漏任何东西.似乎没有 WinRT System.Data.我正在寻找的是 System.Data.SqlClient 来连接到 SQL.Metro 应用程序可以连接到 SQL 吗?如果是,Metro App 可以以符合 App Store 的方式连接到 SQL.

Just want to make sure I am not missing something. There does not appear to be a WinRT System.Data. What I am looking for is System.Data.SqlClient to connect to SQL. Can a Metro App connect to SQL? If yes can a Metro App connect to SQL in a App Store compliant manner.

推荐答案

你说得对,System.Data 不存在(当我第一次开始使用 WinRT 时,我也在寻找同样的东西).您也将无法引用它.如果您想与 SQL 数据库通信,您将需要使用某种其他协议(WebService、SOAP、WCF 等).

You are correct, System.Data is not there (I looked for the same thing when I first started messing around with WinRT). You won't be able to reference it either. If you want to talk to a SQL database you're going to need to use some kind of other protocol (WebService, SOAP, WCF, etc.).

有一些可用的 SQLite 端口似乎可以正常工作,这将为您提供本地数据库选项,而不是基于服务器的选项,而无需使用某种中间人来访问数据库.

There are ports for SQLite available that appear to be working which will give you a local DB option but not a server based one without using some kind of middle man to get to the DB.

作为旁注,我个人希望看到一个桌面 Metro 应用程序,它可以连接到例如 SQL Express 数据库,但它目前不在卡片中,而不是跳过箍.

As a side note, I personally would have liked to have seen a desktop Metro app that could connect to a SQL Express Database for instance but it's not currently in the cards without jumping through hoops.

这篇关于WinRT System.Data - 连接到 SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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