Using databases in Windows Phone 7 applications
I'm new to the windo开发者_JAVA技巧ws phone 7 application project. I dont know how to use the database in windows phone 7. Would u please help me for this one?
As far as I'm aware you cannot use any form of a MS SQL database at the moment - you have to use IsolatedStorage. However, I believe there is an update coming later in the year codenamed 'mango' that will introduce the ability to use a SQL CE database.
I have found this though which demonstrates how to use SQLite: http://www.wirebear.com/blog/2010/11/12/using-sqlite-in-your-wp7-app
I would recommend the Sterling database. Lightweight, supports tombstoning and great support. Install using NuGet or download here
There are lots of database options for Windows Phone 7. See Local Sql database support for Windows phone 7
精彩评论