title: To return IQueryable<T> or not return IQueryable<T>
body: <p>I have a repository class that wraps my LINQ to SQL Data Context. The repository class is a business line class that contains all the data tier logic (and caching and such).</p>
  
  <p>Here's my v1 of my repo interface.</p>
  
  <pre><code>public interface ILocationRepository
  {
      IList&lt;Location&gt; FindAll();
      IList&lt;Location&gt; FindForState(State state);
      IList&lt;Location&gt; FindForPostCode(string postCode);
  }
  </code></pre>
  
  <p>But to handle paging for FindAll, I'm debating whether or not to expose IQueryable&lt;ILocation&gt; instead of IList to simplify the interface for circumstances such as paging.</p>
  
  <p>What are the pros and cons to exposing IQueryable from the data repo?</p>
  
  <p>Any help is very much appreciated.</p>