title: Entity Framework 6 + SQLite
body: <p>I'm trying to use EF6 alpha and SQLite 1.0.66.0</p>
  
  <p>My .config file:</p>
  
  <pre><code>&lt;connectionStrings&gt;
     &lt;add connectionString="data source=:memory:;" name="TestDbContext" providerName="System.Data.SQLite" /&gt;
  &lt;/connectionStrings&gt;
  &lt;entityFramework&gt;
     &lt;providers&gt;
        &lt;provider invariantName="System.Data.SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" /&gt;
     &lt;/providers&gt;
  &lt;/entityFramework&gt;
  &lt;runtime&gt;
     &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
       &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" /&gt;
       &lt;/dependentAssembly&gt;
     &lt;/assemblyBinding&gt;
  &lt;/runtime&gt;
  &lt;system.data&gt;
    &lt;DbProviderFactories&gt;
       &lt;remove invariant="System.Data.SQLite"/&gt;
         &lt;add name="SQLite Data Provider" invariant="System.Data.SQLite"
             description=".Net Framework Data Provider for SQLite"
             type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" /&gt;
    &lt;/DbProviderFactories&gt;
  &lt;/system.data&gt;
  </code></pre>
  
  <p>When I run </p>
  
  <pre><code>using (var dbContext = new TestDbContext())
  {
      if (dbContext.Database.Exists())
      {
          dbContext.Database.Delete();
      }
      dbContext.Database.Create();
  }
  </code></pre>
  
  <p>I get an error:</p>
  
  <blockquote>
    <p>System.InvalidOperationException: System.InvalidOperationException:
    The 'Instance' member of the Entity Framework provider type
    'System.Data.SQLite.SQLiteFactory, System.Data.SQLite,
    Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
    did not return an object that inherits from
    'System.Data.Entity.Core.Common.DbProviderServices'. Entity Framework
    providers must extend from this class and the 'Instance' member must
    return the Singleton instance of the provider..</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>