title: Select 1 field and group by it (my query isnt working)
body: <p>My query below, what im trying to do is get all the records with that quoteID and then group by that ID</p>
  
  <pre><code>  var CurSuppliers = db.Quotes_Items_Suppliers.Where(i =&gt; i.QuoteID == QuoteID).Select(t =&gt; t.SupplierID).GroupBy(t =&gt; t).ToList();
  </code></pre>
  
  <p>I knew i had to only select the 1 field as LINQ would not know how to group if there were more fields with different values.</p>
  
  <p>so im just trying to get some grouped IDs i can loop through, at the moment when i do a foreach on the below i get </p>
  
  <pre><code>strCurSupps = "System.Data.Objects.ELinq.InitializerMetadata+Grouping`2[System.Int32,System.Int32],System.Data.Objects.ELinq.InitializerMetadata+Grouping`2[System.Int32,System.Int32]"
  </code></pre>