L
labjac
Guest
Hallo
Our application consist of three different project, The core is shared classes between the other two projects, but we need to save settings like connectionstring in the core, where the front end will edit these files, and the service will just read the connectionstrings from the file. We created a ConnectionString.config file and want the create a class in the core project that will be able to get and set the connection string with two methods in the same class. (Other projects will be able to call the methods from any project.
But the issues is I cannot find a way to read or to write to our ConnectionString.config files. also we cannot add a reference to the class library which might be able to get this done throught the ConfigurationManager which is a class in System.Configuration.
Is there a way to add a reference file to a class library, or what is the best practice to get a file that can be shared by all other programs?
labjac
Continue reading...
Our application consist of three different project, The core is shared classes between the other two projects, but we need to save settings like connectionstring in the core, where the front end will edit these files, and the service will just read the connectionstrings from the file. We created a ConnectionString.config file and want the create a class in the core project that will be able to get and set the connection string with two methods in the same class. (Other projects will be able to call the methods from any project.
But the issues is I cannot find a way to read or to write to our ConnectionString.config files. also we cannot add a reference to the class library which might be able to get this done throught the ConfigurationManager which is a class in System.Configuration.
Is there a way to add a reference file to a class library, or what is the best practice to get a file that can be shared by all other programs?
labjac
Continue reading...