Entity Framework and Connection string with custom Encryption
<p>I am using an Oracle DB with EF 6 code first.
And did custom encryption on connection string.
Connection string stores in separate config file "connstring.config": There is a clear connection string without encryption</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;connectionStrings&gt;
  &lt;add name="MyConnString" connectionString="Data Source=MySource;User ID=UserID;Password=Password;PERSIST SECURITY INFO=True;"
  providerName="Oracle.ManagedDataAccess.Client" /&gt;
&lt;/connectionStrings&gt;
</code></pre>

<p>Data sources in web.config file.</p>

<p>MyDbcontext:</p>

<pre><code>public static string GetConnectionString()
{
    string encodedConnStr = ConfigurationManager.ConnectionStrings["MyConnString"].ConnectionString.ToString();
    string result = Crypto.Decrypt(encodedConnStr);
    return result;
}
public MyDbContext() : base(GetConnectionString()){}
</code></pre>

<p>And when I run application I am getting Server Error : <strong><em>Unable to complete operation. The supplied SqlConnection does not specify an initial catalog or AttachDBFileName.</em></strong> </p>

<p>How can I solve this?</p>