简体   繁体   English

如何将Windows Phone 8连接到数据库并将Azure同步数据应用于数据库?

[英]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.

相关问题 如何连接windows phone app使用存储在sql azure中的数据库 - How to connect windows phone app to use database stored in sql azure 将Windows Phone 8.1 Store应用连接到现有的Azure SQL数据库 - Connect a Windows Phone 8.1 Store App to an Existing Azure SQL Database 如何在Windows Phone Runtime中将数据存储在数据库中? - How to store data in a database in Windows Phone Runtime? 如何连接Azure联合根数据库并在实体框架中应用联合? - How to connect Azure federated root database and apply federation in entity framework? 在WebClient Windows Phone和WebService之间同步数据 - Sync data between webclient windows phone and webservice 如何在Windows Phone 8.1中连接MS SQL数据库 - How to connect MS SQL database in windows phone 8.1 如何使用Windows Phone 8连接到服务器上已托管的SQL Server数据库 - How to connect to a SQL Server database already hosted on server with windows phone 8 如何在Windows Phone 8上将标题栏与SystemTray同步? - How to sync the Titlebar with SystemTray on Windows Phone 8? 将Windows Azure连接到Microsoft Visual Studio 2012-Windows Phone 8 - Connect Windows Azure to Microsoft Visual Studio 2012 - windows phone 8 如何在不丢失Windows Phone 8中数据的情况下更新现有的sqlite数据库? - How to update existing sqlite database without losing data in Windows Phone 8?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM