Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行時に C# から接続文字列を動的に変更する方法を知りたいです。App.config に 3 つの接続文字列があります。接続の 1 つを動的に変更する方法を知りたいです。
PS私はAdo.NET、Entity Frameworkを使用しています。
接続文字列を変更するたびに、App.Config ファイルのメイン接続文字列を変更するだけです。
参照