title: How to access data into IQueryable?
body: <p>I have IQueryable object and I need to take the data inside the IQueryable to put it into Textboxs controls. Is this possible?</p>
  
  <p>I try something like:</p>
  
  <pre><code>public void setdata (IQueryable mydata)
  {
  
      textbox1.text = mydata.????
  
  }
  </code></pre>
  
  <h3>Update:</h3>
  
  <p>I'm doing this:</p>
  
  <pre><code>public IQueryable getData(String tableName, Hashtable myparams)
  {
          decimal id = 0;
  
          if (myparams.ContainsKey("id") == true)
               id = (decimal)myparams["id"];
  
          Type myType= Type.GetType("ORM_Linq." + tableName + ", ORM_Linq");
  
          return this.GetTable(tableName , "select * from Articu where id_tipo_p = '" + id + "'");
  
  }
  
  
  public IQueryable&lt;T&gt; GetTable&lt;T&gt;(System.Linq.Expressions.Expression&lt;Func&lt;T, bool&gt;&gt; predicate) where T : class
  {
      return _datacontext.GetTable&lt;T&gt;().Where(predicate);
  }
  </code></pre>
  
  <p>This returns a <code>{System.Data.Linq.SqlClient.SqlProvider+OneTimeEnumerable</code>1[ORM_Linq.Articu]}`</p>
  
  <p>I don't see any method like you tell me. I see Cast&lt;>, Expression, ToString...</p>