通过xamarin连接到MySql数据库 [英] Connect to MySql database through xamarin

查看:544
本文介绍了通过xamarin连接到MySql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在为学校做一个iOS应用程序,以连接到学校的mysql数据库. 它应该能够通过xamarin Studio上的工具连接到它. 我尝试了许多不同的编码来连接数据库,但无法这样做. 是否有任何教程或示例代码可让我学习如何做?

I'm currently doing a iOS application for school to connect to school mysql database. It should be able to connect to it through the tools on xamarin studio. I tried a lot of different coding to connect the database, but was unable to do so. Is there any tutorial or example code to let me learn on how to do it ?

感谢您的帮助!

推荐答案

请勿直接从移动应用程序连接到数据库.为此,需要将数据库服务器直接暴露在Web上,这是可怕的安全风险.更好的方法是使用Web服务层来代理客户端和服务器之间的交互.

Do not connect directly to a database from a mobile app. Doing this requires exposing your database server directly to the web, which is a horrible security risk. The better approach is to use a web services layer to broker the interaction between your client and your server.

http://docs.xamarin.com/guides/cross-platform/application_fundamentals/web_services/

这篇关于通过xamarin连接到MySql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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