Skip to content
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
10 changes: 9 additions & 1 deletion source/fundamentals/crud/write-operations/update-many.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ Update Many
.. replacement:: document-or-documents

documents


.. replacement:: options-ref

.. _csharp-update-many-options:

.. replacement:: options-ref-link

:ref:`csharp-update-many-options`

.. replacement:: fields-link

:ref:`csharp-update-many-fields`
Expand Down
202 changes: 201 additions & 1 deletion source/fundamentals/crud/write-operations/update-many/fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,204 @@ Update Fields in Many Documents

.. replacement:: update-page-link

:ref:`<csharp-update-many>`
:ref:`csharp-update-many`

.. replacement:: matching-document-or-documents

all matching documents

.. replacement:: inc-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-inc
:end-before: end-update-many-inc

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-inc-async
:end-before: end-update-many-inc-async

.. replacement:: mul-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-mul
:end-before: end-update-many-mul

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-mul-async
:end-before: end-update-many-mul-async

.. replacement:: rename-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-rename
:end-before: end-update-many-rename

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-rename-async
:end-before: end-update-many-rename-async

.. replacement:: set-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-set
:end-before: end-update-many-set

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-set-async
:end-before: end-update-many-set-async

.. replacement:: max-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-max
:end-before: end-update-many-max

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-max-async
:end-before: end-update-many-max-async

.. replacement:: setoninsert-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-setoninsert
:end-before: end-update-many-setoninsert

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-setoninsert-async
:end-before: end-update-many-setoninsert-async

.. replacement:: options-ref-link

:ref:`csharp-update-many-options` in the Update Many guide

.. replacement:: currentdate-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-currentdate
:end-before: end-update-many-currentdate

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-currentdate-async
:end-before: end-update-many-currentdate-async

.. replacement:: unset-code-example-tabs

.. tabs::

.. tab:: Synchronous
:tabid: sync

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-unset
:end-before: end-update-many-unset

.. tab:: Asynchronous
:tabid: async

.. literalinclude:: /includes/code-examples/update-many/UpdateManyFields.cs
:language: csharp
:copyable: true
:dedent:
:start-after: start-update-many-unset-async
:end-before: end-update-many-unset-async
12 changes: 10 additions & 2 deletions source/fundamentals/crud/write-operations/update-one.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ Update One
.. replacement:: document-or-documents

document


.. replacement:: options-ref

.. _csharp-update-one-options:

.. replacement:: options-ref-link

:ref:`csharp-update-one-options`

.. replacement:: fields-link

:ref:`csharp-update-one-fields`
Expand Down Expand Up @@ -111,4 +119,4 @@ Update One
:copyable: true
:dedent:
:start-after: // start-pipeline-async
:end-before: // end-pipeline-async
:end-before: // end-pipeline-async
Loading
Loading