Sie Ste

Sie Ste

  • NA
  • 196
  • 141.8k

C# obtain db connections from app.config of called program

Jun 26 2013 1:09 PM
I have a C# 2010 console/desktop application that obtains its own database connections from its app.config file. This application adds a reference to a dll so that it can access another C# console/windows application.

The main C# 2010 console/desktop application needs to be able to access the database connections of the program that is called in the dll. The database connections of the called program are stored in an app.config file.

Thus can you show me code or explain to me how the main C# 2010 console/desktop application can obtain the database connections stored in the app.config file for the program that is accessed by the dll?

Answers (1)