title: Entity framework 6 without config file?
body: <p>I have an application that can not use a config file and has to set up the connectionstring for the entity context by code (with EntityConnectionStringBuilder).</p>
  
  <p>The problem comes however with this:</p>
  
  <blockquote>
    <p>No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'.</p>
  </blockquote>
  
  <p>Since I can not use the standard app.config file, am I screwed in EF6? It was not a problem in EF4 if I recall correctly. 
  So the settings inside the entityFramework-tag is something I wish to set in code.</p>
  
  <pre><code>&lt;entityFramework&gt;
  &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"&gt;
    &lt;parameters&gt;
      &lt;parameter value="v11.0" /&gt;
    &lt;/parameters&gt;
  &lt;/defaultConnectionFactory&gt;
  &lt;providers&gt;
    &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
  &lt;/providers&gt;
  &lt;/entityFramework&gt;
  </code></pre>