Tag: ADO.NET
How to Get Connection String from App.config file in C# ?
If you want to get the connection string from the App.config file in C# , you can use the ConfigurationManager class to achieve the same. How to Get Connection String from App.config file in C# ? Assume that the configuration file contains the following Below is the code snippet to get the connection string.
How to Convert XDocument to XmlDocument in C# ?
To convert an XmlDocument to XDocument , you can use the CreateReader method of the XDocument and load it in to the XmlDocument. How to Convert XDocument to XmlDocument in C# ?