title: Document DB query
body: <p>I'm trying to query one of my documents from documentDB but it doesn't appear to be working, this is how i set it up:</p>
  
  <p><strong>NoSQLService:</strong></p>
  
  <pre><code>private INoSQLProvider client;
  private static IContainer container;
  
  public NoSQLService(INoSQLProvider provider)
  {
      client = provider;
  }
  
  public static dynamic QueryDocument&lt;T&gt;(Uri reference, FeedOptions queryOptions)
  {
      var documentDB = container.Resolve&lt;INoSQLProvider&gt;();
      return documentDB.QueryDocumentAsync(reference, queryOptions);
  }
  </code></pre>
  
  <p><strong>INoSQLProvider:</strong></p>
  
  <pre><code>IOrderedQueryable&lt;Document&gt; QueryDocumentAsync(Uri reference, FeedOptions queryOptions);
  </code></pre>
  
  <p><strong>AzureDocumentDBService</strong></p>
  
  <p><code>AzureDocumentDBService</code> inherits from <code>INoSQLProvider</code></p>
  
  <pre><code>private readonly IDocumentClient client;
  
  public IOrderedQueryable&lt;Document&gt; QueryDocumentAsync (Uri reference, FeedOptions queryOptions)
  {
      return client.CreateDocumentQuery(reference, queryOptions);
  }
  </code></pre>
  
  <p><strong>AzureDocumentDBTest</strong></p>
  
  <pre><code>FeedOptions queryOptions = new FeedOptions();
  
  Documents document = new Documents();
  
  document.id = "112";
  
  queryOptions.MaxItemCount = -1;
  
  var reference = NoSQLService.CreateDocumentUri("ppsession1", "callumtest");
  IQueryable&lt;Documents&gt; documentQuery = NoSQLService.QueryDocument&lt;Documents&gt;(reference, queryOptions).Where(document.id = "112");
  
  foreach (Documents documents in documentQuery)
  {
      Console.WriteLine("\tRead {0}", documents);
  
  }
  </code></pre>
  
  <p>When I run the test I get an exception:</p>
  
  <blockquote>
    <p>Microsoft,CSparp.RuntimeBuilder.RuntimeBinderException: 'object' does
    not contain a definition for 'Where'.</p>
  </blockquote>