•
The ConfigurationManager class is used to
read the connectionString from the configuration file.
•
This class is
present in the Configuration
namespace.
•
The assembly
reference of this class is added by default for web application.
•
But for windows
application,we need to add assembly reference explicitly.
•
To add reference
in windows application project in visual studio:-
•
Go to solution
explorer.
•
Right-Click on
the references section.
•
Select the Add
Reference option from the menu.
•
Select the System.Configuration from the dialog
box and click OK.
•
The assembly
reference is now added for the ConfigurationManager
class in windows application.
Comments
Post a Comment