Skip to content

Commit e0a3577

Browse files
authored
DOCSP-26494: image and link cleanup (#35)
* DOCSP-26494: image and link cleanup * link fix
1 parent 3c536d0 commit e0a3577

12 files changed

+13
-13
lines changed

source/code-type/builders.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ and its corresponding {+query-api+} translation:
3636

3737
.. code-block:: csharp
3838

39-
var filter = Builders<Movie>.Filter.Eq(m => m.Genre, genre) &
40-
Builders<Movie>.Filter.Gte(m => m.Score, minScore) &
41-
Builders<Movie>.Filter.Regex(m => m.Score, titleSearchTerm);
39+
var filter = Builders<Book>.Filter.Eq(b => b.Genre, genre) &
40+
Builders<Book>.Filter.Gte(b => b.Price, minPrice) &
41+
Builders<Book>.Filter.Regex(b => b.Title, titleSearchTerm);
4242

4343
.. tab:: {+query-api+}
4444
:tabid: query-api-builders
@@ -47,8 +47,8 @@ and its corresponding {+query-api+} translation:
4747

4848
{
4949
"$and": [ { "Genre": genre },
50-
{ "Score": { "$gte": minScore } },
51-
{ "Score": /titleSearchTerm/ } ]
50+
{ "Price": { "$gte": minPrice } },
51+
{ "Title": /titleSearchTerm/ } ]
5252
}
5353

5454
.. include:: /includes/variable-names.rst
@@ -82,7 +82,7 @@ with or without an information message displayed:
8282
.. tab:: With Information Message
8383
:tabid: message
8484

85-
.. figure:: /includes/images/builder-popup-photoshop.png
85+
.. figure:: /includes/images/builder-popup.png
8686
:alt: Screenshot of builder expression with an information message displayed in Visual Studio.
8787

8888
Track Builder Variables

source/code-type/linq.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

190190
To 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

228228
To learn more about LINQ3, see `LINQ3 <{+driver-docs+}reference/driver/crud/linq3/>`__
229229
in the {+driver-short+} documentation.
230230

231231
To 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>`__.
Binary file not shown.
165 KB
Loading
Loading
3.96 KB
Loading

source/includes/images/builder.png

26 KB
Loading
10.9 KB
Loading

source/includes/images/fluent-api.png

6.55 KB
Loading
Loading

0 commit comments

Comments
 (0)