title: Object not queryable
body: <p>I have a database "Pubs" with a table "authors". I have made a dbml file from the database by dragging over "authors".</p>
  
  <p>Here is the "Default.aspx.vb"</p>
  
  <pre><code>Public Class _Default
      Inherits System.Web.UI.Page
      Dim author As Object
      Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
          Dim db As New PubsContext
          Dim authors = From p In dbo.authors _
                         Select p
  
          GridView1.DataSource = author
          GridView1.DataBind()
      End Sub
  End Class
  </code></pre>
  
  <p>Here is the class for it: "Class1.vb"</p>
  
  <pre><code>Partial Public Class PubsContext
      Dim authors As Object
      Public Function GetProductsByCategory(ByVal id1 As Integer) As IEnumerable(Of authors)
          Return From p In Me.authors _
                 Where p.au_id = id1 _
                 Select p
      End Function
  End Class
  </code></pre>
  
  <p>Error code: 
  "Expression of type 'Object' is not queryable.  Make sure you are not missing an assembly reference and/or namespace import for the LINQ".  </p>
  
  <p>In references there is already a "System.Data.Linq". What should I do?</p>