Windows Phone 8访问SQL远程数据库 [英] Windows Phone 8 access to SQL remote Database

查看:163
本文介绍了Windows Phone 8访问SQL远程数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个WP8应用程序,我有一个免费的在线sql服务器(不是windows azure)。
如何从手机应用程序访问数据库?
我试过一个本地的WPF服务,它的工作,但它不会帮助,如果我想上传的应用程序到商店。
感谢您的帮助!

I'm trying to develop a WP8 app, and I have a free online sql server (not windows azure). How can I Access the Database from the phone app? I tried a local WPF sevice and it worked, but it won't help if I'd like to upload the app to the store. Thanks for the help!

推荐答案

据我所知,您不能直接访问数据库,您需要一个代理Web服务,我建议您查看OData,REST API以及JSON或XML将您的数据从数据库传输到您的应用程序。

As far as i'm aware, you can't access the database directly, you need a proxy web service for this, i recommend you to look at OData, REST APIs and also to JSON or XML to transfer your data from the database to your app.

这篇关于Windows Phone 8访问SQL远程数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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