Skip to content

DOCSP-43227 - Remove IMongoQueryable #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions source/fundamentals/linq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ as follows:
var restaurantsCollection = restaurantsDatabase.GetCollection<Restaurant>("restaurants");
var queryableCollection = restaurantsCollection.AsQueryable();

The ``AsQueryable()`` method returns an `IMongoQueryable
<{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Linq.IMongoQueryable.html>`__ instance that
has the ``IQueryable`` extension methods, along with a set of
MongoDB specific methods.

Once you have the queryable object, you can compose a query using
**method syntax**. Some pipeline stages also support **query comprehension syntax**,
which resembles SQL query syntax.
Expand Down
4 changes: 4 additions & 0 deletions source/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ Version 3.0 Potential Breaking Change
configuring authentication in the {+driver-short+}, see
:ref:`Authentication Mechanisms. <csharp-authentication-mechanisms>`

- This version of the driver replaces the ``IMongoQueryable`` interface with the
``IQueryable`` interface, following the pattern used by most other LINQ providers. If your
application contains references to ``IMongoQueryable``, replace them with ``IQueryable``.

.. _csharp-breaking-changes-2.28.0:

Version 2.28.0 Potential Breaking Change
Expand Down
Loading