I
Icarus
I'm working on the design stage of a very flexible and parametrized
application. It'll hold about 50 to 60 diferent application settings.
Admin users sholud be able to change any application setting to set a new
application behavior.
I won't use app.config since application will be distributed using click
once and settings could change.
Settings type are diferent each other, I mean, It could have strings,
numeric or image settings.
I'll store settings on a Settings table inside a SQL Server Database.
I've been asking about the best way to do this and allways get this two
options:
1.- Map each setting to a column in the settings table, so I'll have as much
colums as application settings. Then create a class in which every property
holds an application setting. Each time I need to read an app setting I'll
read a class property. That class should contains a GetSettings methid to
refresh settings value.
2.- Define a IdSetting, SettingName, SettingValue table that contains each
application setting. A new query is completed every time I need to read a
setting value.
Can anyone point me to the right direction or share his experience doing
application settings without confi files?
T.I.A.
SG
application. It'll hold about 50 to 60 diferent application settings.
Admin users sholud be able to change any application setting to set a new
application behavior.
I won't use app.config since application will be distributed using click
once and settings could change.
Settings type are diferent each other, I mean, It could have strings,
numeric or image settings.
I'll store settings on a Settings table inside a SQL Server Database.
I've been asking about the best way to do this and allways get this two
options:
1.- Map each setting to a column in the settings table, so I'll have as much
colums as application settings. Then create a class in which every property
holds an application setting. Each time I need to read an app setting I'll
read a class property. That class should contains a GetSettings methid to
refresh settings value.
2.- Define a IdSetting, SettingName, SettingValue table that contains each
application setting. A new query is completed every time I need to read a
setting value.
Can anyone point me to the right direction or share his experience doing
application settings without confi files?
T.I.A.
SG