mihies wrote:
Walaa wrote:
I don't get it?
Are you saying there will be no need for a config file or ini file at least?
How the configuration settings should be changed (configured at runtime)? If a file won't be used?
I'll illustrate. You generate the code. The database specific project (I am talking about adapter scenario) has an app.config file which holds default connection string. To use this connection string you have to copy the app.config into exe's app.config file (or web.config).
If you use .net 2 application settings than the last step is not required. The config file is usable without further action.
Hi, there. To avoid this issue, I recommend using the override for Adapter's constructor that takes in a connection string. Just set up a simple factory method that injects the appropriate connection string and call that when instantiating a new Adapter.
Jeff