External config file to be used by multiple DLLs.

Posted by vikp on Stack Overflow See other posts from Stack Overflow or by vikp
Published on 2010-06-01T10:32:07Z Indexed on 2010/06/01 11:03 UTC
Read the original article Hit count: 468

Hi,

I have multiple DLLs that are used to read/write data into my database.

There is a presentation layer DLL and a data access layer DLL. I want these DLLs to share a set of the connection strings.

My idea is to store the connection string in a seperate DLL in the external configuration file. I'm not sure whether it's a good idea and whether I can reference that external DLL in both presentation and data access layers.

The other question is whether I should write a helper class to read the data from the external config file or whether I should be using built in .Net methods?

Thank you

© Stack Overflow or respective owner

Related posts about c#

Related posts about web-config