简体   繁体   English

将数据从 MS SQL 数据库获取到 Xamarin Android 应用 Gridview

[英]Getting Data from MS SQL Database to Xamarin Android App Gridview

I am new to Mobile Development and I am currently learning Xamarin.我是移动开发的新手,目前正在学习 Xamarin。 I would like to ask for guide on how I can integrate my MS SQL Database to my Xamarin Android App.我想问一下如何将我的 MS SQL 数据库集成到我的 Xamarin Android 应用程序的指南。

Like, I want to get data from a table and pass it to a gridview in Xamarin.就像,我想从表中获取数据并将其传递给 Xamarin 中的 gridview。

Please enlighten me.请赐教。

Thanks,谢谢,

Kim

Your question is very generic, if you are taking about connecting to offline db, that would be SQLite not MS SQL.您的问题非常笼统,如果您要连接到离线数据库,那将是 SQLite 而不是 MS SQL。

If you want to leverage MS SQL, you would have to have service layer that would communicate with MS SQL db, and you would get that data through rest based services in JSON/XML format.如果您想利用 MS SQL,您必须拥有与 MS SQL db 通信的服务层,并且您将通过 JSON/XML 格式的基于休息的服务获取该数据。

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

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