Seems a trivial question, but surprisingly, found only some solutions like this one, which explain how to add some properties, using deprecated functions. I’d rather want to edit one. So, how it’s done in .NET 4.0?
To be more specific, need to set the location of database, in <connectionStrings> property.
This code is adapted from this blog post and tested on .NET 4:
App.config
On my PC it prints