title: Filtering using ObjectQuery<T> error
body: <p>I am creating a accounting / product management program, and  I have problem with code, that should filter my database content inside Data grid view:</p>
  
  <pre><code>private void List(object sender, EventArgs e)
      {
          ObjectQuery&lt;TblProduct&gt; filteredProducts = new ObjectQuery&lt;TblProduct&gt;(
              "SELECT VALUE P FROM TblProduct AS P WHERE P.ProductType = " + comboBox1.SelectedValue, salon);
  
          dataGridView1.DataSource = filteredProducts;
      }
  </code></pre>
  
  <p>and I am using almost same code once more, it is supousted to do almost same thing - filter ad sort my products and create buttons for each product:</p>
  
  <pre><code> private void AddProductsToTabbedPanel()
      {
          foreach (TabPage tp in tabControl1.TabPages)
          {
              ObjectQuery&lt;TblProduct&gt; filProd = new ObjectQuery&lt;TblProduct&gt;("SELECTED VALUE P FROM TblProduct AS P", salon);
  
              foreach (TblProduct tprod in filProd)
              {
                  Button b = new Button();
                  b.Text = tprod.Description;
                  tp.Controls.Add(b);
  
              }
          }
      }
  </code></pre>
  
  <p>In both cases i got an error, telling me that EtitySqlException was uhadled, and that there is some bad syntax.</p>
  
  <p>I have taken these codes from one <a href="https://www.youtube.com/playlist?list=PL70BEFACCE6BFAF6F" rel="nofollow">tutorial</a> so i dont understand why is it not working...</p>