ObjectQuery<T> equivalent in Entity Framework 6
<p>With Entity Framework 4 (Legacy) i would be able to
query using ObjectQuery for example: </p>

<pre><code>// where Product is a table in a sample 
// database created with sql management studio
// Product table has a foreign key pType to another table p_type and there is a pType key there
// pType is of type int and another column that is called description which describes the pType
// 1 would be shoes 2 would be hats etc.
// filteredCombobox is data boung pType(displaymember) and Description(valuemember) 
// dbcontext is the database Entity

//this event below is the SelectionChangeCommit
        private void listToBeFiltered(object sender, EventArgs e)
{
    ObjectQuery&lt;Product&gt; itemsToBeFiltered = new ObjectQuery&lt;Product&gt;(
    "Select Value c FROM Product AS c WHERE c.pType = " + filterCombobox.SelectedValue, dbcontext);

    dataGridView1.DataSource = itemsToBeFiltered;
}
</code></pre>

<p>so when i select shoes in combo box the grid should only show shoes pType which is a 1 with shoes description.</p>

<p>what i want to know what is the EF6 equivalent of the code above. been stuck for 2 weeks.
any help would be greatly appreciated. Thanks friends</p>