title: Can't Get EF 6 Code First To Create the Tables
body: <p>I already have a database with tables outside EF scope. But I want that the tables which will be used by EF to be created automatically.</p>
  
  <pre><code>public class SessionInfo
  {
      public Guid Id {get;set;}
      public string Name { get; set; }
      public DateTime StartsOn { get; set; }
      public DateTime EndsOn { get; set; }
      public string Notes { get; set; }
  }
  
  public class StudentsDbContext:DbContext
  {
      public StudentsDbContext():base("name=memory")
  
      {
          Database.Log = s =&gt; this.LogDebug(s);         
  
      }
  
      public DbSet&lt;SessionInfo&gt; Sessions { get; set; }
  }
  </code></pre>
  
  <p>This code just throws an exception because the table SessionInfoes doesn't exist.</p>
  
  <pre><code> using (var db = new StudentsDbContext())
   {
         db.Sessions.Add(new SessionInfo() {Id = Guid.NewGuid(), Name = "bla"});           
         var st = db.Sessions.FirstOrDefault();
   }
  </code></pre>
  
  <p>What do I need to do so that EF will create the "SessionInfoes" (whatever name, it's not important)  table by itself? I was under the impression that Ef will create the tables when the context is first used for a change or a query.</p>
  
  <p><strong>Update</strong></p>
  
  <p>After some digging, it seems that EF and Sqlite don't play very nice together i.e at most you can use EF to do queries but that's it. No table creation, no adding entities. </p>