Use built-in local database or Isolated storage

对着背影说爱祢 提交于 2019-12-13 13:59:31

问题


Local database is now built into Windows Phone 7.5 Mango. I'm considering a scenario of storing a few unrelated collections with data. Using the local database is pretty straightforward, while using Isolated storage requires a bit more custom development. There are also some alternative solutions like FileDb, mentioned in a pre-mango discussion here https://stackoverflow.com/a/6954250/346995

What would be the best solution of local database/Isolated storage with regards to simplicity and performance? Would local database fit most scenarios?


回答1:


Unless you are going to be storing relational data (and it sounds like you aren't) I would suggest using the IsoStore. It isn't really that difficult to use.

Now, as far as performance. Reading the disk on the phone is not going to be fast. That being said, any solution you use is going to be saved to disk in the end; so I don't think you will notice much of a difference if you go with DB or IsoStore.

Isolated Storage Overview
Isolated Storage Best Practices
31 Days of Mango: Isolated Storage
Using Isolated Storage in Windows Phone 7



来源:https://stackoverflow.com/questions/8416058/use-built-in-local-database-or-isolated-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!