title: IQueryable select all?
body: <p>I have this method, it selects data in a particular range (pageIndex and pageSize)</p>
  
  <pre><code>public PagedList(IQueryable&lt;T&gt; source, int pageIndex, int pageSize)
      {            
          this.AddRange(source.Skip(pageIndex * pageSize).Take(pageSize).ToList());
      }
  </code></pre>
  
  <p>I want to create an overloading method which selects all data, so, here's my code</p>
  
  <pre><code>public PagedList(IQueryable&lt;T&gt; source)
      {
         //this.AddRange(source.Select(x =&gt; new T()).ToList()); (1)
          this.AddRange(source.AsQueryable().ToList()); (2)
      }
  </code></pre>
  
  <p>Firstly, I tried (1), but it didn't accept T. Then I tried (2), and it's recommended that I should make parameter type INumerable instead of IQueryable. What is the solution to select all data in this case?</p>
  
  <p>Thanks</p>