title: Mongodb AsQueryable()
body: <p>I am using mongoDB C# driver 2.4.0 , when I try to use LINQ I am getting error:</p>
  
  <pre><code>Method not found: 'MongoDB.Driver.Linq.IMongoQueryable`1&lt;!!0&gt; MongoDB.Driver.IMongoCollectionExtensions.AsQueryable(MongoDB.Driver.IMongoCollection`1&lt;!!0&gt;, MongoDB.Driver.AggregateOptions)'.
  </code></pre>
  
  <p>My context class snippet to get collection is:</p>
  
  <pre><code> public IMongoCollection&lt;SGProduct&gt; Products
          {
              get
              {
                  return Database.GetCollection&lt;SGProduct&gt;("SGProductRepository");
              }
          }
  </code></pre>
  
  <p>And the method I am using to extract data from mongo is:</p>
  
  <pre><code>public void GeHouseDetailByProduct(string catID)
          {
              var query =                 (from p in MongoContext.Products.AsQueryable()
                                 join h in MongoContext.House.AsQueryable() on
                                 p.HouseID equals h._id
                                 where p.ProductCategoryID == catID
                                 select h);     
          }
  </code></pre>
  
  <p>Any idea what I am doing wrong here. 
  Thanks</p>