Skip to content

Commit 6622421

Browse files
authored
DOCSP-42484 - Remove LINQ2 (#229)
1 parent d50f7bf commit 6622421

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

source/faq.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,7 @@ If you receive an ``Unsupported filter ...`` or ``Expression not
215215
supported ...`` exception message, try the following
216216
steps:
217217

218-
1. Try configuring the new `LINQ3
219-
<https://mongodb.github.io/mongo-csharp-driver/2.17/reference/driver/crud/linq3/>`__
220-
provider. The LINQ3 provider contains many fixes and new features
221-
over the LINQ2 provider.
222-
#. Use the `{+analyzer+}
218+
1. Use the `{+analyzer+}
223219
<https://www.mongodb.com/docs/mongodb-analyzer/current/>`__ to analyze your
224220
expressions.
225221
#. Try to simplify your query where possible.

source/fundamentals/connection/connection-options.txt

-7
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,6 @@ relevant options.
198198
| **Default**: ``false``
199199
| **Connection URI Example**: {+not-available+}
200200

201-
* - **LinqProvider**
202-
- | The LINQ provider to use.
203-
|
204-
| **Data Type**: `LinqProvider <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.Linq.LinqProvider.html>`__
205-
| **Default**: ``LinqProvider.V3``
206-
| **Connection URI Example**: {+not-available+}
207-
208201
* - **LoadBalanced**
209202
- | Specifies whether the driver is connecting to a load balancer. You can set this
210203
| property to ``true`` only if:

source/fundamentals/linq.txt

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ strongly typed collections of objects by using language keywords and operators.
2828
The {+driver-short+} automatically translates LINQ queries into
2929
:manual:`aggregation operations </aggregation>`.
3030

31+
.. important::
32+
33+
LINQ3 is the only LINQ provider available in the {+driver-long+}. If you have
34+
manually configured your project to use LINQ2, it will not compile.
35+
3136
The examples in this guide use the ``restaurants`` collection
3237
in the ``sample_restaurants`` database provided in the :atlas:`Atlas sample datasets </sample-data>`.
3338
To learn how to create a free MongoDB Atlas cluster and load the sample datasets,

source/upgrade.txt

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

69+
- The LINQ2 provider has been removed from this version of the driver.
70+
You must use LINQ3 for all LINQ queries.
71+
6972
.. _csharp-breaking-changes-2.28.0:
7073

7174
Version 2.28.0 Potential Breaking Change

0 commit comments

Comments
 (0)