Skip to content

DOCSP-48810 - Move usage examples #554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions source/fundamentals/crud/read-operations/retrieve.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,13 @@ To learn more about query filters, see :ref:`csharp-specify-query`.

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

To view runnable examples of the ``Find()`` method, see the
:ref:`csharp-find-one` page.
For runnable examples of the find operations, see the following usage
examples:

- `FindOne() <{+example+}/find-one/FindOne.cs>`__
- `FindOneAsync() <{+example+}/find-one/FindOneAsync.cs>`__
- `FindMany() <{+example+}/find-many/FindMany.cs>`__
- `FindManyAsync() <{+example+}/find-many/FindManyAsync.cs>`__

API Documentation
~~~~~~~~~~~~~~~~~
Expand Down
6 changes: 4 additions & 2 deletions source/fundamentals/crud/write-operations/delete.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ Additional Information
For runnable examples of the delete operations, see the following usage
examples:

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

API Documentation
~~~~~~~~~~~~~~~~~
Expand Down
6 changes: 4 additions & 2 deletions source/fundamentals/crud/write-operations/insert.txt
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ Additional Information
For runnable examples of the insert operations, see the following usage
examples:

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

.. To learn more about performing the operations mentioned, see the
.. following guides:
Expand Down
9 changes: 9 additions & 0 deletions source/fundamentals/crud/write-operations/replace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,15 @@ The ``ReplaceOneResult`` class contains the following properties:

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

Additional Information
----------------------

For runnable examples of the replace operation, see the following usage
examples:

- `ReplaceOne() <{+example+}/replace-one/ReplaceOne.cs>`__
- `ReplaceOneAsync() <{+example+}/replace-one/ReplaceOneAsync.cs>`__

API Documentation
~~~~~~~~~~~~~~~~~

Expand Down
5 changes: 3 additions & 2 deletions source/fundamentals/crud/write-operations/update-many.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ Update Many

multiple documents

.. replacement:: usage-examples-link
.. replacement:: usage-examples-links

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

.. replacement:: sync-api-link

Expand Down
5 changes: 3 additions & 2 deletions source/fundamentals/crud/write-operations/update-one.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ Update One

a single document

.. replacement:: usage-examples-link
.. replacement:: usage-examples-links

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

.. replacement:: sync-api-link

Expand Down
4 changes: 3 additions & 1 deletion source/includes/page-templates/update/update.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ Additional Information

|instruqt-lab-instructions|

For runnable examples of the update operations, see the |usage-examples-link| page.
For runnable examples of the update operations, see the following usage examples:

|usage-examples-links|

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

Expand Down
82 changes: 0 additions & 82 deletions source/usage-examples/deleteMany.txt

This file was deleted.

91 changes: 0 additions & 91 deletions source/usage-examples/deleteOne.txt

This file was deleted.

3 changes: 0 additions & 3 deletions source/usage-examples/facets.toml

This file was deleted.

Loading
Loading