title: SQLite and EntityFramework InvalidOperationException
body: <p>I'm working with Visual Studio 2013 and trying to create sample project using SQLite and EntityFramework downloaded from NuGet.</p>
  
  <p>When i run program i got this exception on the line below and i don't have any idea to repair this.</p>
  
  <pre><code>context.Persons.Add(new Person() { Name = "aaa111", Surname = "bbb111" });
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>An unhandled exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll
  
  Additional information: Unable to complete operation. The supplied SqlConnection does not specify an initial catalog or AttachDBFileName.
  </code></pre>
  
  <p><strong>Additionaly, when i run this code with SQL Server CE (dowloaded also from NuGet) everything works OK.</strong></p>
  
  <p><strong>Full Source code:</strong></p>
  
  <p>Program.cs :</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.ComponentModel.DataAnnotations;
  using System.ComponentModel.DataAnnotations.Schema;
  using System.Data.Entity;
  
  namespace sqlcetut
  {
      public class Person
      {
          [Key]
          public int Id { get; set; }
          public string Name { get; set; }
          public string Surname { get; set; }
      }
  
      public class Ctx : DbContext
      {
          public Ctx()
              : base(@"Data Source=sample.sqlite")
          {
              Database.SetInitializer(new Initial());
          }
  
          public DbSet&lt;Person&gt; Persons { get; set; }
  
          public class Initial : DropCreateDatabaseIfModelChanges&lt;Ctx&gt;
          {
          }
      }
  
      class Program
      {
          static void Main(string[] args)
          {
              Console.WriteLine("start");
              using (Ctx context = new Ctx())
              {
                  context.Persons.Add(new Person() { Name = "aaa111", Surname = "bbb111" });
                  context.Persons.Add(new Person() { Name = "aaa222", Surname = "bbb222" });
                  context.Persons.Add(new Person() { Name = "aaa333", Surname = "bbb333" });
  
                  context.SaveChanges();
              }
  
              Console.WriteLine("end");
              Console.ReadLine();
          }
      }
  }
  </code></pre>
  
  <p>App.config :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
    &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;provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" /&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="System.Data.SQLite" /&gt;
        &lt;remove invariant="System.Data.SQLite.EF6" /&gt;
        &lt;add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".Net Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Thanks for reply.</p>