@@ -162,7 +162,7 @@ and the corresponding warning message displayed by the {+product+}:
162162
163163 .. code-block:: csharp
164164
165- _ = moviesCollection .Where(m => m .GetHashCode() == 1234 );
165+ var result = queryableColl .Where(b => b .GetHashCode() == 167 );
166166
167167 The following screenshot shows the annotation displayed by the {+product+}
168168 underneath the preceding code snippet in Visual Studio:
@@ -178,7 +178,7 @@ and the corresponding warning message displayed by the {+product+}:
178178 .. code-block:: text
179179 :copyable: false
180180
181- NotSupportedLinqExpression C# {document} .GetHashCode() is not supported .
181+ Expression not supported: b .GetHashCode().
182182
183183 The following screenshot shows the warning displayed in Visual Studio:
184184
@@ -188,7 +188,7 @@ and the corresponding warning message displayed by the {+product+}:
188188.. include:: /includes/error-list-window.rst
189189
190190To view more examples of unsupported LINQ expressions, see the
191- `{+product+} Github repository <{+product-source-repo+}/tests/MongoDB.Analyzer.Tests.Common.TestCases/Linq/NotSupportedLinqExpressions.cs>`__.
191+ `{+product+} Github repository <{+product-source-repo+}/blob/main/ tests/MongoDB.Analyzer.Tests.Common.TestCases/Linq/NotSupportedLinqExpressions.cs>`__.
192192
193193.. _mongodb-analyzer-analyze-linq3:
194194
@@ -215,19 +215,19 @@ provider. To learn how to configure your LINQ provider, see the
215215
216216 .. code-block:: csharp
217217
218- _ = moviesCollection .Where(m => m.Producer .Substring(0, 6 ) == "Steven")
218+ var result = queryableColl .Where(b => b.Title .Substring(0) == "Pane");
219219
220220 .. tab:: Warning
221221 :tabid: warning-linq3
222222
223223 .. code-block:: text
224224 :copyable: false
225225
226- NotSupportedLinq2Expression Supported in LINQ3 only: db.coll.Aggregate([{ "$match" : { "$expr" : { "$eq" : [{ "$substrCP" : ["$Producer ", 0, 6 ] }, "Steven "] } } }])
226+ Supported in LINQ3 only: db.coll.Aggregate([{ "$match" : { "$expr" : { "$eq" : [{ "$substrCP" : ["$Title ", 0, { "$subtract" : [{ "$strLenCP" : "$Title" }, 0 ] }] } , "Pane "] } } }])
227227
228228To learn more about LINQ3, see `LINQ3 <{+driver-docs+}reference/driver/crud/linq3/>`__
229229in the {+driver-short+} documentation.
230230
231231To view examples of expressions the {+driver-short+} only supports with the LINQ3 provider, see the
232232`{+product+} Github repository
233- <{+product-source-repo+}/tests/MongoDB.Analyzer.Tests.Common.TestCases/Linq/NotSupportedLinq2.cs>`__.
233+ <{+product-source-repo+}/blob/main/ tests/MongoDB.Analyzer.Tests.Common.TestCases/Linq/NotSupportedLinq2.cs>`__.
0 commit comments