ConnectionString and N-tiers project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
My project contain 1 assembly for BLL and 1 dll for dataclass.
i need to change the connections string of my DAL, without compiled the
project.
but my dal is a dll et i have only an application.exe.config file.
how can i use the config file of the dll when my application is deployed.
thank you
 
Frederic_D said:
Hello,
My project contain 1 assembly for BLL and 1 dll for dataclass.
i need to change the connections string of my DAL, without compiled the
project.
but my dal is a dll et i have only an application.exe.config file.
how can i use the config file of the dll when my application is deployed.
thank you

The only way you can really do it is with a second file called
dbconnstring.xml that has to be deployed with the application, that's if you
have complete control fo the DALC and it's not generated code.

The DALC would have a function to read the dbconnstring.xml and supply the
connection string, which that should allow you to change the
dbconnstring.xml's connection string data and save it, while the application
is running.

It doesn't even need to be a xml type file. It could be just a plain.txt
file that had the connection string in it.
 
Back
Top