简体   繁体   中英

WP7 Data Storage— lots of data

I am going to be creating a WP7 app that needs to store a decent amount of data. Specifically, blocks of text (short article length), and more than 50-500 at any one time.

I am a PHP guy, so I would use MySQL if I were doing this on a server, so is there an equivalent database system or data storage system for WP7 that can handle this amount of text? Would IsolatedStorage be ok for this, or do I have to use something else?

It doesn't have to be SQL, just something that can handle lots of data. I just used MySQL as an example because it would be (my) ideal choice if this were a server.

I recommend using LINQ To XML and storing the XML files in isolated storage. The technology is great. It has intellisense in VS and the syntax is similar to SQL so you should be able to pick it up easily. Ive used this for a similar scenario like yours and the performance was good.

Here is a link to a sample to help you get started:

LINQ TO XML Sample

The nice thing is once you learn this you can use it when reading web services, writing to xml files, updating etc. Let me know if this helps.

Update: With mango we now have access to SQL Server Compact. All the info is at MSDN .

There are currently lots of databases which support Windows Phone 7. See the list at: Local Sql database support for Windows phone 7

You don't have to use a database though if flat files would be more appropriate.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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