Skip to content

Commit 0ee9298

Browse files
authored
Remove IMongoQueryable (mongodb#232)
1 parent 52b4561 commit 0ee9298

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

source/fundamentals/linq.txt

-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ as follows:
7878
var restaurantsCollection = restaurantsDatabase.GetCollection<Restaurant>("restaurants");
7979
var queryableCollection = restaurantsCollection.AsQueryable();
8080

81-
The ``AsQueryable()`` method returns an `IMongoQueryable
82-
<{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Linq.IMongoQueryable.html>`__ instance that
83-
has the ``IQueryable`` extension methods, along with a set of
84-
MongoDB specific methods.
85-
8681
Once you have the queryable object, you can compose a query using
8782
**method syntax**. Some pipeline stages also support **query comprehension syntax**,
8883
which resembles SQL query syntax.

source/upgrade.txt

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ Version 3.0 Potential Breaking Change
6666
configuring authentication in the {+driver-short+}, see
6767
:ref:`Authentication Mechanisms. <csharp-authentication-mechanisms>`
6868

69+
- This version of the driver replaces the ``IMongoQueryable`` interface with the
70+
``IQueryable`` interface, following the pattern used by most other LINQ providers. If your
71+
application contains references to ``IMongoQueryable``, replace them with ``IQueryable``.
72+
6973
- This version removes the ``ClusterBuilder.ConfigureSdamLogging()`` method.
7074
To configure logging in your application, see the :ref:`csharp-logging` guide.
7175

0 commit comments

Comments
 (0)