title: Entity Framework Code First and Invalid Object Name Error
body: <p>I have a composite table called ImporterState, that are tied to a table called Importer and State.  The error happens here <code>context.Importers.Include(q =&gt; q.States)</code>.  Why is this happening?</p>
  
  <p>{"Invalid object name 'ImporterStates'."}</p>
  
  <pre><code>    [Table("HeadlineWebsiteImport", Schema = "GrassrootsHoops")]
          public class Importer
          {
              public int Id { get; set; }
              public string Name { get; set; }
              public string RssUrl { get; set; }
              public string Type { get; set; }
              public string Keywords { get; set; }
              public bool Active { get; set; }
              public DateTime DateModified { get; set; }
              public DateTime DateCreated { get; set; }
  
              public int WebsiteId { get; set; }
  
              public HeadlineWebsite Website { get; set; }
  
              [InverseProperty("Importers")]
              public ICollection&lt;State&gt; States { get; set; }
          }
  
  [Table("State", Schema = "GrassrootsHoops")]
      public class State
      {
          [Key]
          public int Id { get; set; }
          public string Name { get; set; }
          public string Abbr { get; set; }
  
          [InverseProperty("States")]
          public ICollection&lt;Headline&gt; Headlines { get; set; }
  
          [InverseProperty("States")]
          public ICollection&lt;Importer&gt; Importers { get; set; }
      }
  </code></pre>