Skip to content

Commit 1f3b4fd

Browse files
authored
DOCSP-49735: C# driver 3.0 support (#82)
* DOCSP-49735: C# driver 3.0 support * typo * MW feedback
1 parent 3cd39f6 commit 1f3b4fd

File tree

3 files changed

+22
-48
lines changed

3 files changed

+22
-48
lines changed

config/redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ raw: ${prefix}/master -> ${base}/upcoming/
1111
[*-master]: ${prefix}/${version}/rules/#MABuilders2001 -> ${base}/${version}/rules/#mabuilders2001/
1212
[*-master]: ${prefix}/${version}/rules/#MALinq1001 -> ${base}/${version}/rules/#malinq1001
1313
[*-master]: ${prefix}/${version}/rules/#MALinq2001 -> ${base}/${version}/rules/#malinq2001
14-
[*-master]: ${prefix}/${version}/rules/#MALinq2002 -> ${base}/${version}/rules/#malinq2002
14+
[*-master]: ${prefix}/${version}/rules/#MALinq2002 -> ${base}/${version}/rules/
1515
[v1.3-master]: ${prefix}/${version}/rules/#MAPoco1001 -> ${base}/${version}/rules/#mapoco1001
1616
[v1.3-master]: ${prefix}/${version}/rules/#MAPoco2001 -> ${base}/${version}/rules/#mapoco2001

source/rules.txt

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -194,51 +194,6 @@ message:
194194
To learn more about LINQ expressions, see the
195195
:ref:`mongodb-analyzer-analyze-linq` guide.
196196

197-
MALinq2002
198-
~~~~~~~~~~
199-
200-
The ``MALinq2002`` rule detects if an expression is supported only in
201-
LINQ3 and displays a message that contains the equivalent Query API expression.
202-
203-
.. list-table::
204-
:header-rows: 0
205-
:stub-columns: 1
206-
:widths: 35 65
207-
208-
* - **Category**
209-
- ``MongoDB.Analyzer.LINQ``
210-
211-
* - **Severity**
212-
- ``Warning``
213-
214-
* - **Notes**
215-
- | This rule might apply differently depending on the value of
216-
| your ``DefaultLinqVersion`` configuration setting. To learn more,
217-
| see the :ref:`Analyzer Configuration Options <mongodb-analyzer-configuration-options>`.
218-
|
219-
| To view examples of supported LINQ3 expressions, see the
220-
| `source code testing files <{+product-source-repo+}/blob/main/tests/MongoDB.Analyzer.Tests.Common.TestCases/Linq/NotSupportedLinq2.cs>`__.
221-
222-
The following code triggers the ``MALinq2002`` rule to display a message that
223-
shows the supported LINQ3 expression:
224-
225-
.. code-block:: csharp
226-
227-
var results = queryableColl
228-
.Where(b => b.Price + 1 == 21)
229-
.Where(b => "Re-release: " + b.Title == "Re-release: Siddhartha");
230-
231-
The following image displays the ``MALinq2002`` rule and information
232-
message:
233-
234-
.. figure:: /includes/images/MALinq2002-rule.png
235-
:alt: Screenshot of LINQ expression with MALinq2002 rule message
236-
237-
.. tip::
238-
239-
To learn more about LINQ expressions, see the
240-
:ref:`mongodb-analyzer-analyze-linq` guide.
241-
242197
MAPoco1001
243198
~~~~~~~~~~
244199

source/whats-new.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,33 @@ What's New
1212

1313
Learn what's new in:
1414

15+
* :ref:`Version 2.0 <mongodb-analyzer-whats-new-2.0>`
1516
* :ref:`Version 1.5 <mongodb-analyzer-whats-new-1.5>`
1617
* :ref:`Version 1.4 <mongodb-analyzer-whats-new-1.4>`
1718

19+
.. _mongodb-analyzer-whats-new-2.0:
20+
21+
What's New in 2.0
22+
-----------------
23+
24+
The 2.0 {+product+} release includes the following features,
25+
improvements, and fixes:
26+
27+
- Supports only {+driver-short+} v3.0 and higher.
28+
- Drops support for the ``MALinq2002`` rule because {+driver-short+} v3.0
29+
removes the ``LINQ2`` provider.
30+
- Drops support for ``IMongoQueryable``. As a result, the {+product-short+}
31+
attempts to analyze each ``IQueryable`` object, except for system collections and
32+
arrays. This version adds the ``LinqAnalysisVerbosity`` option to control
33+
the verbosity of ``IQueryable`` analysis.
34+
1835
.. _mongodb-analyzer-whats-new-1.5:
1936

2037
What's New in 1.5
2138
-----------------
2239

23-
New features of the 1.5 {+product+} release include:
40+
The 1.5 {+product+} release includes the following features,
41+
improvements, and fixes:
2442

2543
- New analysis rules introduced for Entity Framework Core, which enable displaying
2644
MongoDB Query API translations for MongoDB Entity Framework Core Provider expressions at
@@ -33,7 +51,8 @@ New features of the 1.5 {+product+} release include:
3351
What's New in 1.4
3452
-----------------
3553

36-
New features of the 1.4 {+product+} release include:
54+
The 1.4 {+product+} release includes the following features,
55+
improvements, and fixes:
3756

3857
- Support for builders defined within variables. For example, the {+product-short+}
3958
analyzes the second line in the following code:

0 commit comments

Comments
 (0)