H
heikekrieg
Hi all,
i have to load my connectionString from Config dynamically.
We are using many DataAdapters on different Forms and we have to
change from development to production and vice versa.
The only way to set the connectionString dynamically from app.config
is to set it in the property browser (dynamic settings -
connectionString).
BUT this entry will only write to the appSettings in the config file.
We dont want to include the password in the appSettings so we want to
have our own configSettingsHandler to read the connectionString from a
class (Serialization).
This is not available cause in the appSettings we can't handle any
entry with a own handler ...
Any solutions how to solve this problem?
(Our only solution is to parse all sourcefiles and change the
hardcoded entry from the DataAdapter Wizard into any static access to
a class Classname.ConnectionString....
Thx all
i have to load my connectionString from Config dynamically.
We are using many DataAdapters on different Forms and we have to
change from development to production and vice versa.
The only way to set the connectionString dynamically from app.config
is to set it in the property browser (dynamic settings -
connectionString).
BUT this entry will only write to the appSettings in the config file.
We dont want to include the password in the appSettings so we want to
have our own configSettingsHandler to read the connectionString from a
class (Serialization).
This is not available cause in the appSettings we can't handle any
entry with a own handler ...
Any solutions how to solve this problem?
(Our only solution is to parse all sourcefiles and change the
hardcoded entry from the DataAdapter Wizard into any static access to
a class Classname.ConnectionString....
Thx all