title: invalid object name 0x80131904
body: <p>I'm trying to write my first .NET project but I ran to a problem :</p>
  <pre><code>public List&lt;AuthorListItemModel&gt; Search(AuthorSearchModel sm, out int RecordCount)
      {
      
          var q = db.Authors.Select(x =&gt; new AuthorListItemModel
          {
              AuthorID = x.AuthorID,
              AuthorName = x.AuthorName,
              ArticleCount = x.AuthorArticles.Count()
          });
          RecordCount = q.Count();
          sm.RecordCount = RecordCount;
          if (!string.IsNullOrEmpty(sm.AuthorName))
          {
              q = q.Where(x =&gt; x.AuthorName.StartsWith(sm.AuthorName));
          }
          return q.OrderByDescending(x =&gt; x.AuthorID).Skip(sm.PageIndex * sm.PageSize).Take(sm.PageSize).ToList();
      } 
  </code></pre>
  <p>In this query I tried to call my article count from author (many to many relation)
  but it keeps telling me author invalid object name authorArticles HResult=0x80131904
  And when I remove :</p>
  <pre><code>        public DbSet&lt;AuthorArticle&gt; authorArticles { get; set; }
  </code></pre>
  <p>Everything magically works out (I need authorarticles for aggregation root so i can't delete it )</p>