ConnectionString and N-tiers project

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
 
M

Mr. Arnold

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top