简体   繁体   English

SQL Server作为Ionic的数据库后端吗?

[英]SQL Server as Database Backend for Ionic?

如何连接到SQL Server作为Ionic移动应用程序的后端?

Typically one would create an HTTP API (most likely using REST) that would serve as the interface to the database. 通常,将创建一个HTTP API(最有可能使用REST)作为数据库的接口。 This API would be developed in a server side technology of choice: node, ASP.NET, php, etc. The API would connect and communicate with SQL Server by executing T-SQL queries or stored procedures. 该API将以服务器端选择的技术开发:节点,ASP.NET,php等。该API将通过执行T-SQL查询或存储过程与SQL Server连接并进行通信。

Your API would be called by your angular application using the $http service provided by angular. angular应用程序将使用angular提供的$ http服务来调用您的API。

Additional reference materials: 其他参考资料:

  • Angular $http service Angular $ http服务
  • T-SQL T-SQL

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

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