我如何在iOS的Xcode项目中访问ms sql db数据。 [英] How I can access ms sql db data in Xcode project for iOS.

查看:77
本文介绍了我如何在iOS的Xcode项目中访问ms sql db数据。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名移动应用开发者。

现在我正在开发iOS应用。在我的应用程序中,我将连接MSSQL数据库并访问一些数据。

经过一些处理后,我将结果保存到db。

服务器程序是使用ASP .NET MVC5。



关于PHP服务器我使用RESTful开发了数据库访问,例如http://url.com/dbAccess.php?userID=\"-- &PWD = ** ......。我想我也可以使用RESTful来执行它。

但我如何在ASP .NET服务器上使用它?

我该怎么办?

Hi, I am a mobile app developer.
Now I am developing iOS app. In my app I am going to connect MSSQL db and access some data.
After some processing, I am going to save the result to db.
Server program is built using ASP .NET MVC5.

About PHP server I developed db access using RESTful such as "http://url.com/dbAccess.php?userID="--"&pwd="**"…". I think I can perform that also using RESTful.
But How I can use that with ASP .NET server?
How I can do?

推荐答案

是的,codeproject.com上有很多关于.NET Web API的文章和代码片段。



例如,这里有一个涵盖基础知识: CRUD with SPA,ASP.NET Web API和Angular.js [ ^ ]
Yes, there are a lot of articles and code snippets here on codeproject.com dealing with .NET Web API.

Here's one, for instance, that covers the basics: CRUD with SPA, ASP.NET Web API and Angular.js[^]


您可能需要开发一个API组件来公开SQL Server数据并允许更新。请查看此处与WebAPI 2.0相关的文章。
You'll likely need to develop an API component to expose your SQL Server data and allow updates. Take a look at the articles here relating to WebAPI 2.0.


这篇关于我如何在iOS的Xcode项目中访问ms sql db数据。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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