c# Programming Glossary: appdomain.currentdomain.setdata
ADO.NET |DataDirectory| where is this documented? http://stackoverflow.com/questions/1409358/ado-net-datadirectory-where-is-this-documented Master you do the following Set DataDirectory value AppDomain.CurrentDomain.SetData DataDirectory C myDB SQL Connection String with DataDirectory..
%APPDATA% in connection string is not substituted for the actual folder? http://stackoverflow.com/questions/15037937/appdata-in-connection-string-is-not-substituted-for-the-actual-folder value for DataDirectory in your application's Main method AppDomain.CurrentDomain.SetData DataDirectory Environment.GetFolderPath Environment.SpecialFolder.ApplicationData..
Connection string with relative path to the database file http://stackoverflow.com/questions/1833640/connection-string-with-relative-path-to-the-database-file
SQL Express Connection string - Relative to application location http://stackoverflow.com/questions/3500829/sql-express-connection-string-relative-to-application-location the following TestInitialize public void TestInitialize AppDomain.CurrentDomain.SetData DataDirectory System.IO.Path.Combine AppDomain.CurrentDomain.BaseDirectory..
Change default app.config at runtime http://stackoverflow.com/questions/6150644/change-default-app-config-at-runtime bool disposedValue public ChangeAppConfig string path AppDomain.CurrentDomain.SetData APP_CONFIG_FILE path ResetConfigMechanism public override void.. public override void Dispose if disposedValue AppDomain.CurrentDomain.SetData APP_CONFIG_FILE oldConfig ResetConfigMechanism disposedValue..
Update app.config system.net setting at runtime http://stackoverflow.com/questions/980440/update-app-config-system-net-setting-at-runtime @ C ProgramData test.config ConfigurationSaveMode.Full AppDomain.CurrentDomain.SetData APP_CONFIG_FILE @ C ProgramData test.config c# .net app config..
|