Sharing a connection string
Posted
by coure06
on Stack Overflow
See other posts from Stack Overflow
or by coure06
Published on 2010-04-06T11:22:09Z
Indexed on
2010/04/06
11:23 UTC
Read the original article
Hit count: 348
hi,
I am developing a class library (C#) that i will use it for my different projects (later). My class library dll will use the connection string /data context of the project which will reference my new dll. How can i do it?
Lets say i have a class Library Project named "CLP", and a website project "WP". I can add reference to CLP.dll file but how i will pass a connection string/data context object to that dll? as CLP.dll will access db based on the connection string of the "WP".
Not sure my problem is clear or not!
© Stack Overflow or respective owner