title: breeze error: Cannot read property 'toODataFragment'
body: <p>I have the following BreezeController</p>
  
  <pre><code>[BreezeController]
  public class BreezeController : ApiController
  {
      readonly EFContextProvider&lt;MyContext&gt; _ContextProvider = new EFContextProvider&lt;MyContext&gt;();
  
      [HttpGet]
      public string Metadata()
      {
          return _ContextProvider.Metadata();
      }
  
      ....other controllers exposing model types....
  
      [HttpGet]
      public IQueryable&lt;Size&gt; Sizes()
      {
          return _ContextProvider.Context.Sizes;
      }
  }
  </code></pre>
  
  <p>which I access from the client from my DataContext.js with this</p>
  
  <pre><code>var getSizes = function (sizesObservable, modelId) {
          var query = entityQuery.from('Sizes').where('ID', '==', modelId)
              .orderBy('sortOrder').orderBy('size').orderBy('enteredDate');
  
          return manager.executeQuery(query)
              .then(querySucceeded)
              .fail(queryFailed);
  
          function querySucceeded(data) {
              if (sizesObservable) {
                  var intialValues = { size: ' Select a Size', sizeID: breeze.core.getUuid(), modelID: modelId };
                  createNullo(entityNames.size, 'Size', intialValues);
                  sizesObservable(data.results);
              }
              log('Retrieved [Sizes] from remote data source', data, false);
          }
      };
  </code></pre>
  
  <p>All of this works just fine.  I would like to add another route to my controller that has some specialized filtering done on the server.  </p>
  
  <pre><code>[HttpGet]
  public IQueryable&lt;Size&gt; GetUniqueSizes()
  {
      return //custom filtering logic here.
  }
  </code></pre>
  
  <p>with the following javascript in my DataContext.js</p>
  
  <pre><code>var getUniqueSizes = function (sizesObservable, modelId) {
          var query = entityQuery.from('GetUniqueSizes').where('modelID', '==', modelId).where('Approved', '==', 'True')
              .orderBy('sortOrder').orderBy('size').orderBy('enteredDate');
  
          return manager.executeQuery(query)
              .then(querySucceeded);
  
          function querySucceeded(data) {
              if (sizesObservable) {
                  var intialValues = { size: ' Select a Size', sizeID: breeze.core.getUuid(), modelID: modelId };
                  createNullo(entityNames.size, 'Size', intialValues);
                  sizesObservable(data.results);
              }
              log('Retrieved [Sizes] from remote data source', data, false);
          }
      };
  </code></pre>
  
  <p>but when I do this I get the following error on the client</p>
  
  <pre><code>TypeError: Cannot read property 'toODataFragment' …localhost:63144/scripts/breeze.debug.js:12728:23)
  </code></pre>
  
  <p>Why is this route not working?</p>