Reading Connection String from a class Library
Posted
by devnet247
on Stack Overflow
See other posts from Stack Overflow
or by devnet247
Published on 2010-05-04T20:13:05Z
Indexed on
2010/05/04
20:18 UTC
Read the original article
Hit count: 179
c#
Hi all
I have a .net class library 2.0 with an app.config with a connectionString section.
I have 01 Method that this class library exposes " string GetConnectionString(string name)
However even though the app.config in this class library has 3 connstrings it does not read this config.exe.How can I make it read the app.config that resides withing this dll?
Again, Usually you will have a web or windows app with a config and it will all work. Mine is a special case I need to read the connectionstring within this class library.
How can I do it?
thanks a lot
© Stack Overflow or respective owner