Skip to content

Commit d2b5421

Browse files
authored
DOCSP-48810 - Move usage examples (#554)
1 parent 48b8bec commit d2b5421

File tree

17 files changed

+33
-932
lines changed

17 files changed

+33
-932
lines changed

source/fundamentals/crud/read-operations/retrieve.txt

+7-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,13 @@ To learn more about query filters, see :ref:`csharp-specify-query`.
272272

273273
To learn how to specify queries using LINQ, see :ref:`csharp-linq`.
274274

275-
To view runnable examples of the ``Find()`` method, see the
276-
:ref:`csharp-find-one` page.
275+
For runnable examples of the find operations, see the following usage
276+
examples:
277+
278+
- `FindOne() <{+example+}/find-one/FindOne.cs>`__
279+
- `FindOneAsync() <{+example+}/find-one/FindOneAsync.cs>`__
280+
- `FindMany() <{+example+}/find-many/FindMany.cs>`__
281+
- `FindManyAsync() <{+example+}/find-many/FindManyAsync.cs>`__
277282

278283
API Documentation
279284
~~~~~~~~~~~~~~~~~

source/fundamentals/crud/write-operations/delete.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,10 @@ Additional Information
214214
For runnable examples of the delete operations, see the following usage
215215
examples:
216216

217-
- :ref:`csharp-delete-one`
218-
- :ref:`csharp-delete-many`
217+
- `DeleteOne() <{+example+}/delete-one/DeleteOne.cs>`__
218+
- `DeleteOneAsync() <{+example+}/delete-one/DeleteOneAsync.cs>`__
219+
- `DeleteMany() <{+example+}/delete-many/DeleteMany.cs>`__
220+
- `DeleteManyAsync() <{+example+}/delete-many/DeleteManyAsync.cs>`__
219221

220222
API Documentation
221223
~~~~~~~~~~~~~~~~~

source/fundamentals/crud/write-operations/insert.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,10 @@ Additional Information
281281
For runnable examples of the insert operations, see the following usage
282282
examples:
283283

284-
- :ref:`csharp-insert-one`
285-
- :ref:`csharp-insert-many`
284+
- `InsertOne() <{+example+}/insert-one/InsertOne.cs>`__
285+
- `InsertOneAsync() <{+example+}/insert-one/InsertOneAsync.cs>`__
286+
- `InsertMany() <{+example+}/insert-many/InsertMany.cs>`__
287+
- `InsertManyAsync() <{+example+}/insert-many/InsertManyAsync.cs>`__
286288

287289
.. To learn more about performing the operations mentioned, see the
288290
.. following guides:

source/fundamentals/crud/write-operations/replace.txt

+9
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,15 @@ The ``ReplaceOneResult`` class contains the following properties:
241241

242242
**Data Type:** `BsonValue <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.BsonValue.html>`__
243243

244+
Additional Information
245+
----------------------
246+
247+
For runnable examples of the replace operation, see the following usage
248+
examples:
249+
250+
- `ReplaceOne() <{+example+}/replace-one/ReplaceOne.cs>`__
251+
- `ReplaceOneAsync() <{+example+}/replace-one/ReplaceOneAsync.cs>`__
252+
244253
API Documentation
245254
~~~~~~~~~~~~~~~~~
246255

source/fundamentals/crud/write-operations/update-many.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ Update Many
4949

5050
multiple documents
5151

52-
.. replacement:: usage-examples-link
52+
.. replacement:: usage-examples-links
5353

54-
:ref:`csharp-examples-update-many`
54+
- `UpdateMany() <{+example+}/update-many/UpdateMany.cs>`__
55+
- `UpdateManyAsync() <{+example+}/update-many/UpdateManyAsync.cs>`__
5556

5657
.. replacement:: sync-api-link
5758

source/fundamentals/crud/write-operations/update-one.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ Update One
4949

5050
a single document
5151

52-
.. replacement:: usage-examples-link
52+
.. replacement:: usage-examples-links
5353

54-
:ref:`csharp-examples-update-one`
54+
- `UpdateOne() <{+example+}/update-one/UpdateOne.cs>`__
55+
- `UpdateOneAsync() <{+example+}/update-one/UpdateOneAsync.cs>`__
5556

5657
.. replacement:: sync-api-link
5758

source/includes/page-templates/update/update.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ Additional Information
246246

247247
|instruqt-lab-instructions|
248248

249-
For runnable examples of the update operations, see the |usage-examples-link| page.
249+
For runnable examples of the update operations, see the following usage examples:
250+
251+
|usage-examples-links|
250252

251253
To learn more about creating query filters, see the :ref:`csharp-specify-query` guide.
252254

source/usage-examples/deleteMany.txt

-82
This file was deleted.

source/usage-examples/deleteOne.txt

-91
This file was deleted.

source/usage-examples/facets.toml

-3
This file was deleted.

0 commit comments

Comments
 (0)