Could we refer connection string from the other application.

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I am desgining a class library, this class library is make of many
TableAdapters.
TableAdapter wizard usually store the connection string in ahe app.config of
this class libaray.

But my class library will be used by other web application, I want the
connecitons of the class library will come for the web.config of the web
application. How can I do that?
 
I would make a contructor whichs takes a connectionstring a parameter.
It's then up to the calling app to give the desired connectionstring.
 
Back
Top