title: How to use EntityFramework connection string for Elmah?
body: <p>In ELMAH for logging errors to the database you can write:</p>
  
  <pre><code>&lt;errorLog type="Elmah.SqlErrorLog, Elmah"
              connectionStringName="EducoparkEntities"/&gt;
  </code></pre>
  
  <p>However, if I use EntityFramework, this doesn't work because the connection string for EF contains metadata as well:</p>
  
  <pre><code>&lt;add name="EducoparkEntities" connectionString="metadata=res://*/EducoparkData.csdl|res://*/EducoparkData.ssdl|res://*/EducoparkData.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=(Local);Initial Catalog=...;User Id=...;Password=...;MultipleActiveResultSets=True&amp;quot;" providerName="System.Data.EntityClient"/&gt;
  </code></pre>
  
  <p>So, how can I use the EntityFramework connection string in Elmah?</p>