title: how to bind entity model to grid with param in where clause
body: <p>I've created an <code>.edmx</code> model from my SQL Server Express database. Now I'm trying to populate a grid based on params in the where clause passed by the other grid.</p>
  <p>Gridview <code>SelectionChanged</code> event handler:</p>
  <pre><code> int selectedrowindex = dataGridView1.SelectedCells[0].RowIndex;
   DataGridViewRow selectedRow = dataGridView3.Rows[selectedrowindex];
   string id = Convert.ToString(selectedRow.Cells[&quot;person_id&quot;].Value);
  </code></pre>
  <p>where <code>grid1</code> passes the <code>person_id</code> as param; datagridview2 is querying</p>
  <pre><code>SELECT object_name 
  FROM obj_person 
  WHERE person_id = @person_id
  </code></pre>
  <p>I'm used to querying with <code>SqlConnection</code>, is this not needed anymore now as I have the <code>.edmx</code> model? How do I query this with params contemporary with EF6?</p>
  <p>Thanks in advance</p>