title: Entity Framework 6 + C# passing a combobox.SelectedValue as a parameter for context.CreateQuery something simple i am missing?
body: <pre><code>ObjectContext context = ((IObjectContextAdapter)db).ObjectContext; 
  string queryString = @"SELECT VALUE c FROM Product AS c WHERE c.ProductType = " + comboBox1.SelectedValue; 
  ObjectQuery&lt;Product&gt; productQuery = context.CreateQuery&lt;Product&gt;( queryString, comboBox1.SelectedValue ); 
  </code></pre>
  
  <p>// I am having trouble passing combobox.selectedvalue as a parameter –</p>