title: extract one column from a var using linq
body: <p>i have something like this</p>
  
  <pre><code>var emp = db.Employees.toList();
  </code></pre>
  
  <p>in my employees table i have emp name, emp id and salary, using linq with lambda expressions, how do i access emp id in some another variable.
  I have tried looking up for it, couldn't find a solution which does it using linq with lambda expressions</p>
  
  <pre><code>var employeeLeaves = db.Leaves
       .Include("Employee")
       .Include("Employee.Manager")
       .Where(l =&gt; l.Status.Id == 1)
       .GroupBy(l =&gt; l.Employee.Manager.Id)
       .Select(l =&gt; l.GroupBy(k=&gt;k.Employee.Id).Select(j=&gt;j.GroupBy(‌​p=&gt;p.GroupId)))
       .ToList(); 
  </code></pre>
  
  <p>this is the actual query i have,dont ask me how i wrote it..:P now i want to get id column from employeeLeaves and store it in some another variable</p>