开发者

best way to store the configuration values in WP7 app

开发者 https://www.devze.com 2023-03-12 13:50 出处:网络
Since there is no default configuration file In a WP7 app, what is the best way to store the configuration values, e.g. DB connection strings, API Urls. I want these values to be available easily and

Since there is no default configuration file In a WP7 app, what is the best way to store the configuration values, e.g. DB connection strings, API Urls. I want these values to be available easily and also 开发者_JAVA技巧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.


Check this out. I this is what you're after? http://www.dreamincode.net/forums/topic/198869-wp7-using-isolatedstoragesettings/

0

精彩评论

暂无评论...
验证码 换一张
取 消