title: Removing a row from table with two foreign keys entity framework
body: <p>I have a table which consists of only 2 foreign keys as columns. These keys in the table represent a many to many association between 2 other tables. For example: The table is <code>RoleGroup</code>, and the only 2 columns are <code>GroupId</code> and <code>RoleId</code>, both foreign keys to <code>Group</code> and <code>Role</code> tables, respectively. The generated EF object from database didn't create the <code>RoleGroup</code> object, only navigation properties with the other tables. I can insert data in <code>RoleGroup</code> table in EF as follows:</p>
  
  <pre><code>Group grp = context.Groups.Where(g =&gt; g.Id == 8);
  Role role = context.Roles.Where(r =&gt; r.Id == '001c');
  grp.Roles.Add(role);
  context.SaveChanges();
  </code></pre>
  
  <p>Now, how do I remove a row within the table <code>RoleGroup</code> in EF e.g. remove a group (with <code>Id = 5</code>) from a role with Id say <code>'001b'</code>?</p>