What is the best way to store data in isolated storage on Windows Phone 7?

I want the objects to be stored in isolated storage, so far I could think of these ways:

  • Serialize them to an xml file when saving and then serialize them when saving.
  • Use the database of objects. Doubt abounds with good or recommended (examples of Perst , winphone7db and Sterling DB )

Can anyone suggest some best practices?

+2
source share
1 answer

As a basic guide:

If you need database functionality (relationships, transactions, searches, etc.), you should use a database.

If you just need an object store, you just need to save your objects in isolated storage directly (serialize if necessary).

I did not use each of the available DB options, but I will probably go with Finger, since it is most installed (there is also a good guide here ), winphone7db is also not available.

+1
source

Source: https://habr.com/ru/post/1384342/


All Articles