Could we refer connection string from the other application.

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?
 
M

Maarten

I would make a contructor whichs takes a connectionstring a parameter.
It's then up to the calling app to give the desired connectionstring.
 

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