从 Windows Phone 7 连接到 SQL Server

发布于 2024-10-06 08:40:27 字数 162 浏览 0 评论 0原文

我有一个 WP7 应用程序的概念,但我需要从该应用程序建立到 SQL Server 的连接。问题是我无法在 4.0 框架中执行此操作的方法。我知道如何在桌面应用程序中执行此操作,但在开发 Windows 7 手机应用程序时我没有可用的相同方法。有人知道该怎么做吗?如果这个概念是错误的,你能指导我应该如何做吗?

I have a concept for a WP7 app but I need to establish a connection to a SQL Server from the app. Problem is I cant the method to do this in the the 4.0 framework. I know how to do this in a desktop app but I dont have the same methods available to me when developing a windows 7 phone app. Anyone know how to do this? If the concept is wrong can you direct me to how it should be done?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

沫雨熙 2024-10-13 08:40:27

Silverlight(无论是在手机上还是在浏览器上)根本无法建立此类网络连接。您将需要一个服务器来与之通信,可能使用 WCF

Silverlight (either on a phone, or a browser) simply can not make such network connections. You're going to need a server to talk to, likely with WCF

眼波传意 2024-10-13 08:40:27

更好的做法是在数据库服务器前面提供某种 Web 服务,因为将数据库直接暴露到互联网通常被认为对数据库的暴露程度太大。

It would be a better practice to front your database server with some kind of web service as exposing a database directly to the internet is generally considered too much exposure for your database.

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