How do I use local database in windows phone 7 to save just a value, then retrieve that value every time the app is loaded (opened)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If all you want to do is store a value for retrieval, then I would recommend using
IsolatedStorage, particularly theApplicationSettingsclass.An example of it’s usage:
Mango now offers MSSqlCE support, but for a set of values, it’s overkill. A database is more appropriate if you need to store relational data, as opposed to persisting user/application settings.
While IsolatedStorage is nice, it can be expensive to read and write to. Avoid reading from IsolatedStorage from your UI thread, which will cause your app to appear to be unresponsive.