The Milos Data Objects read their settings from the app.config and web.config files by default. There is usually no reason to retrieve them yourself, but what if you want to save your own setting in the .config file and retrieve it in code?
namespace: EPS.Configuration
string result = ConfigurationSettings.Sources["DotNetConfigurationFile"].Settings["MySetting"];
or (since the default configuration source in Milos is the app.config or web.config file)
string result = ConfigurationSettings.Settings["MySetting"];
See the "How-To" help document for advanced configuration topics such as:
- Overriding Settings Temporarily
- Configuring Your Own Set of Configuration Sources
- Getting Direct Access to a Source
- Supporting Custom Config Files
- Creating and Using Strongly-Typed Settings