title: How to select all using IQueryable
body: <p>Using MVC3, I have a Student Repository (in a project) and a StudentService (in another project). In the service I want to create a function that returns all of the students that are in the db table. This is a new way of doing things for me so I'm a bit new. in the GetAllStudents Function below, How could I change the syntax to select all.</p>
  
  <p>In Repository:</p>
  
  <pre><code>      namespace SpeakOut.Data
  {
     public class StudentRepository
  {
      SpeakOutDataContext context;
      private Table&lt;StudentEntity&gt; table;
      public StudentRepository()
      {
          context = new SpeakOutDataContext();
          table = context.GetTable&lt;StudentEntity&gt;();
      }
  
  
      public IQueryable&lt;Student&gt; Select()
      {
          return table.Select(x =&gt; new Student
                                  {
                                      WNumber = x.WNumber,
                                      CatalogueYear = x.CatalogueYear,
                                      Standing = x.Standing
                                  });
      }
  }
  </code></pre>
  
  <p>} </p>
  
  <p>In Services:</p>
  
  <pre><code>   namespace SpeakOut.Services
     {
    public class StudentService
   {
      private StudentRepository repository;
      public StudentService()
      {
          repository = new StudentRepository(); 
  
      }
  
      public IQueryable&lt;Student&gt; GetAllStudents()
      {
          return repository.Select().All(x =&gt; x.FirstName) ; //**This line is where I don't know how I would call all the students**
      }
  
  
  }
  </code></pre>
  
  <p>}</p>