title: ODataProperties NextLink is Null
body: <p>I have an OData Web API service using .NET 4.5. It has a WebApi controller derived from another controller I made myself.</p>
  
  <pre><code>public class AerodromoController : BaseController
  {
      public PageResult&lt;Aerodromo&gt; Get(ODataQueryOptions&lt;Aerodromo&gt; options)
      {
          return Paging(Store.Aerodromo.All(), options);
      }
  }
  </code></pre>
  
  <p>This 'Paging' method is from BaseController and do as follow:</p>
  
  <pre><code>public class BaseController : ApiController
  {
      public PageResult&lt;T&gt; Paging&lt;T&gt;(IQueryable&lt;T&gt; query, ODataQueryOptions&lt;T&gt; options)
      {
          IQueryable Data;
          if (options.Top != null)
          {
              Data = options.ApplyTo(query, new ODataQuerySettings() { PageSize = options.Top.Value });
          }
          else
          {
              Data = options.ApplyTo(query);
          }
  
          return new PageResult&lt;T&gt;(
              Data as IEnumerable&lt;T&gt;,
              Request.ODataProperties().NextLink,
              query.Count());
      }
  }
  </code></pre>
  
  <p>After firing an ajax request like that:</p>
  
  <pre><code>$.getJSON('acompanhamento/aerodromo?$' + encodeURI("top=20"))
  </code></pre>
  
  <p>I do get the top 20 entities and the count. But the nextPageLink is null. This is kinda weird, cause the following code works. What could be happening?</p>
  
  <pre><code>public class AerodromoController : BaseController
  {
      public PageResult&lt;Aerodromo&gt; Get(ODataQueryOptions&lt;Aerodromo&gt; options)
      {
          var Data = options.ApplyTo(Store.Aerodromo.All(), new ODataQuerySettings()
          {
              PageSize = 20
          });
          return new PageResult&lt;Aerodromo&gt;(
              Data as IEnumerable&lt;Aerodromo&gt;,
              Request.ODataProperties().NextLink,
              Store.Aerodromo.All().Count());
      }
  }
  </code></pre>