Configuration data

S

serge calderara

Dear all,

I have a windows application linked to a database.
I was wondering about one point.

Do I have to go for a configuration file anyway or can I
store all my application in this database.

I could use only the database but is it something good
compare to configuration file?

regards
serge
 
M

Michael Giagnocavo [MVP]

It depends on the needs of your application.

You'll probably want a config file that points to the database to
begin with. Per-user config values can be stored with
IsolatedStorage, unless you want to share them across the network
(like user A gets his preferences, no matter where he logs in). I
think IsolatedStorage is local to the machine.

Global application configuration settings could be stored in a
database.

You just need to sit down and think of the scenarios of how they'd be
used, what if something is moved, etc.

-mike
MVP
 
S

serge.calderara

I cannot really catch the use of this ISolateStorege
classe.

I seems there is two things to retrive configuration from.
First in case your applcation require some setting to
start like database path, Debug flag, ... Those then
belongs to the configuration file named MyApp.exe.config
and as far as I understand you need to edit that file
manually with correct section or group of section.
Any other parameter needed to tune my application
behaviour seems to be store or added in this file.

Then why using this isolateStorage for configuration file
if we can easily do something with System.Configuration
nameSpace.

Thnaks to clearup my mind on both
regards
serge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top