[英]How to connect windows phone 8 to database and apply azure sync data to it?
What is the best possible way to connect your windows phone 8 application with the database?Which is the best option? 将Windows Phone 8应用程序与数据库连接的最佳方法是什么?哪个是最佳选择? I want to make synchronization possible to that app database and azure SQL database.So the ultimate goal is to update the azure database and view the output on phone app even while it is offline.
我想使该应用程序数据库和Azure SQL数据库之间的同步成为可能,因此最终目标是即使在离线状态下,更新Azure数据库并查看手机应用程序上的输出。 Provide appropriate links & tutorial wherever possible.
尽可能提供适当的链接和教程。
Build an ASP.NET MVC WebAPI server, hosted as an Azure website, which connects to your database. 构建作为Azure网站托管的ASP.NET MVC WebAPI服务器,该服务器连接到您的数据库。 Then the Windows Phone can talk to the server using a RESTFUL interface, ie JSON carried by HTTP.
然后,Windows Phone可以使用RESTFUL接口(即HTTP承载的JSON)与服务器对话。
Store data on the phone in local storage. 将数据存储在手机上的本地存储中。 I really would not try to run a database on Windows Phone.
我真的不会尝试在Windows Phone上运行数据库。
See Microsoft ASP.NET Web API > Overview and Getting Started: http://www.asp.net/web-api/videos/getting-started 请参阅Microsoft ASP.NET Web API>概述和入门: http : //www.asp.net/web-api/videos/getting-started
Wikipedia > Representational state transfer: https://en.wikipedia.org/wiki/Representational_state_transfer Wikipedia>代表性状态转移: https : //en.wikipedia.org/wiki/Representational_state_transfer
MSDN > HttpClient Class: https://msdn.microsoft.com/en-us/library/system.net.http.httpclient(v=vs.118).aspx MSDN> HttpClient类: https ://msdn.microsoft.com/zh-cn/library/system.net.http.httpclient( v= vs.118).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.