Adam Bickels
Adam Bickels

Reputation: 471

Change connection string dynamically from C#

I would like to know how can I change the connection string dynamically from C# in run time. I have 3 connection string in the App.config, I would like to know how can I change one of the connections dynamically.

P.S I use Ado.NET , Entity Framework.

Upvotes: 1

Views: 400

Answers (1)

andy
andy

Reputation: 6079

Every time you want to change the connection string just you change the main connection string in App.Config file.

Reference

Upvotes: 2

Related Questions