title: MVC3/LINQ/EF4.1 selecting distinct col values from a result set?
body: <p>How can I select a list of column values from a result set (as distinct) and put into a list?</p>
  
  <pre><code>class T {int id; string name;}
  </code></pre>
  
  <p>-- Controller...</p>
  
  <pre><code>var query = @"exec someStoredProc";
  IEnumerable&lt;T&gt; bb =
   db2.Database.SqlQuery&lt;T&gt;(query);    
  
  // Something like???:
  List&lt;string&gt; Names = bb.SelectDistinct("name");  // returns distinct list of names from result set
  </code></pre>