简体   繁体   English

Metro App开发和远程数据库连接

[英]Metro App development and Remote Database Connections

I have a web matrix-based site I originally created, and then continued development in Visual Studio Ultimate. 我有一个最初创建的基于Web矩阵的网站,然后在Visual Studio Ultimate中继续开发。 Now that the website is complete, I am making a Metro app for Windows 8 release preview. 现在网站已经完成,我正在制作一个适用于Windows 8版本预览的Metro应用程序。

I need the Metro app to connect to a remote SQL database - but connecting to remote (or any kind of,) databases in Metro apps seems to be impossible. 我需要Metro应用程序连接到远程SQL数据库-但是在Metro应用程序中连接到远程(或任何种类的)数据库似乎是不可能的。 Is there any way to connect to a remote database from within a Metro app, without the use of Services or Azure? 是否可以通过Metro应用程序在不使用服务或Azure的情况下连接到远程数据库?

Is there any way to connect to a remote database within a Metro app, without the use of Services or Azure? 没有使用服务或Azure的方法是否可以连接到Metro应用程序中的远程数据库?

I'm going to assume by 'services' you mean web services. 我将通过“服务”来假设您是指Web服务。 In that case, there isn't really an alternative. 在这种情况下,实际上没有其他选择。 You'll have to use WCF or otherwise create some kind of web service to access the database. 您将必须使用WCF或以其他方式创建某种Web服务来访问数据库。 WinRT is in the same situation as Silverlight in this regard. 在这方面,WinRT与Silverlight处于相同情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM