简体   繁体   中英

Ionic app connection to SQL Server database

Basically I have a mobile app that I am building in Ionic (3 I believe). I have a website that I built a while back in C# using Visual Studio. The site is attached to a SQL Server database. This Ionic app I am creating is to go along with said website.

My question is how do I connect my app to the same database. I'm very new to Ionic and I cannot seem to find any answers online. I have found some vague SQLite stuff but that is about it.

Not necessarily looking for specific answers in code (although I wouldn't say no). If someone could even breakdown the steps I'd need to take then I can go and research it myself.

Thanks in advance

您可以使用C#中的Web服务通过Ionic应用程序连接到mysql数据库。无需使用SQLite将应用程序连接到sql数据库。它可以用作本地存储.Ionic使用json数据进行访问。因此您检索的数据来自Webservice的必须是Json。

It depends Do you wish to directly access SQL database from your ionic app or you want to have access to the database via api. 1. Directly connect to SQL database from ionic application using Cordova plugin. Follow this link for more info - 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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