title: Entity Framework defaultConnectionFactory for MySQL
body: <p>The below configuration works fine when I specify the connectionString name as a parameter to the base constructor. Because I want to be able to change the default provider later on without recompiling, I want to set it in my <code>app.config</code> instead, but I have no idea what to provide as <code>type</code> for <code>defaultConnectionFactory</code>.</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;add name="MySQL" providerName="MySql.Data.MySqlClient" connectionString="SERVER=localhost;DATABASE=abc;UID=root;PASSWORD=;" /&gt;
    &lt;/connectionStrings&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, EntityFramework"&gt;&lt;/defaultConnectionFactory&gt;
      &lt;providers&gt;
        &lt;provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"&gt;&lt;/provider&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
  </code></pre>
  
  <p>Exception:</p>
  
  <blockquote>
    <p>Failed to set Database.DefaultConnectionFactory to an instance of
    the 'MySql.Data.Entity.MySqlConnectionFactory, EntityFramework' type
    as specified in the application configuration. See inner exception for
    details.</p>
  </blockquote>
  
  <p>Inner exception (translated, VS is set to English but some messages are still in my language):</p>
  
  <blockquote>
    <p>Could not load type "MySql.Data.Entity.MySqlConnectionFactory" in
    assembly "EntityFramework"</p>
  </blockquote>
  
  <p>The <a href="http://msdn.microsoft.com/en-us/data/jj556606.aspx" rel="nofollow">documentation</a> states that the assembly name follows after the colon, thus I also tried <code>MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6</code>, giving me this exception:</p>
  
  <blockquote>
    <p>Format of the initialization string does not conform to specification
    starting at index 0.</p>
  </blockquote>
  
  <p>I'm using EF6, MySql.Data &amp; MySql.Data.Entity.EF6 6.8.3.0.</p>