title: Setup Entity Framework 6 with Mysql - Code first
body: <p>I am trying to setup a existing project to use Entity Framework. I have never used it before and want to learn it on a personal project.</p>
  
  <p>I have a solution with many projects, all related. Login is where I wanna do querys. Model is where the model is. Main is where the program starts.</p>
  
  <p>I have installed EntityFramework onto MySolution.Model.</p>
  
  <p>This is the app.config for Model:</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="ALDatabaseContext" providerName="MySql.Data.MySqlClient"
          connectionString="server=localhost;port=3306;database=aldatabase;uid=root;password=root"/&gt;
  &lt;/connectionStrings&gt;
  &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/&gt;
  &lt;providers&gt;
      &lt;provider invariantName="MySql.Data.MySqlClient"
        type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/&gt;
       &lt;provider invariantName="System.Data.SqlClient"
        type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/&gt;
  &lt;/providers&gt;
  &lt;/entityFramework&gt;
  </code></pre>
  
  <p>My context is very simple</p>
  
  <pre><code>public class ALDatabaseContext : DbContext
  {
      public virtual DbSet&lt;User&gt; Users { get; set; }
  }
  </code></pre>
  
  <p>But when I call context from Login I get an exception:</p>
  
  <blockquote>
    <p>Additional information: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. </p>
  </blockquote>
  
  <p>What I am missing?</p>