Is it possible to compose some xml entry in app.config (in my case some of connectionStrings) using appSettings parameters from the same file?
Example:
<connectionStrings>
<add name="MyContextDB" connectionString="Data Source =.;Initial Catalog = EFMyContextDB;Integrated Security = false;User Id=user;Password=pwd" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="UserId" value="userValue" />
<add key="Password" value="pwdValue" />
</appSettings>
I want to somehow use UserId instead of user and Password instead of pwd values of MyContextDB's connectionString.
This connection is then used in DbContext object:
public class MyContext : DbContext
{
public MyContext() : base("name = MyContextDB") { }
...
}