在Windows Phone中使用数据库 [英] Working With Database In Windows Phone
问题描述
我绝对是Windows Phone开发的初学者,其基本思想是C#& Silverlight。我正在构建一个需要一些基本数据库功能的应用程序。然后,我发现SQL Server与Windows Phone开发不兼容!然后我还发现没有本地数据库不能用于WP。真是一团糟 !我在Android中使用了SQLite。现在有人告诉我可以在Windows Phone中使用SQLite。 &告诉我该怎么做(走 。如果没有,如何将数据存储在数据库中?请帮助。谢谢。
首先,您需要数据库吗?如果您需要存储基本的应用程序配置材料,则Windows Phone拥有适用于此的本地存储。
如果您确实需要数据库(用于存储关系数据或其他数据库)功能),那么您有两个选择:设备。
如果您需要定位芒果之前的版本,请 SterlingDB 是一个很好的选择。
网络上有许多文章专门介绍了这一点。
I am a absolute beginner in Windows Phone Development with a basic idea in C# & Silverlight . I am building an application which will require some basic database functionality . Then , I discovered that SQL Server is not compatible with Windows Phone Development ! Then I also found that no local database is not gonna work for WP . What a mess ! I used SQLite in Android . Now anybody just tell me I can use SQLite in Windows Phone . & Show me the way . If not , How can I store data in a database ? Help Please .Thanks in advance .
First, do you need a database? If you need to store basic app configuration materials, Windows Phone has local storage which will work for this.
If you really need database (to store relational data, or other database functionality) then you have a couple of choices:
Windows phone 7.5 (code name mango) has support for SQL CE, which is an optimized version of MS Sql Server for mobile devices.
If you need to target versions earlier than Mango, SterlingDB is a good alternative.
There are a number of articles on the web dedicated to getting you started with this.
这篇关于在Windows Phone中使用数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!