简体   繁体   中英

best way to store the configuration values in WP7 app

Since there is no default configuration file In a WP7 app, what is the best way to store the configuration values, eg DB connection strings, API Urls. I want these values to be available easily and also updated easily.

Thanks

If the values are simple you could store them in the IsolatedStorageSettings class.

If they get more complex, you could store them in a file (again in IsolatedStorage) with default values from within the code.

You can also use http://sterling.codeplex.com/ , which kind of database. I use it in my Todoist Lite. Works great for quering, saving, loading, etc. sets of data.

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