From 6a617b10be75cb37ccbfa6bb7fc558bfdd3cd704 Mon Sep 17 00:00:00 2001 From: Mike Woofter <108414937+mongoKart@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:48:00 -0500 Subject: [PATCH 1/2] staging --- source/crud/update-many.txt | 50 +------------------------------------ source/crud/update-one.txt | 50 +------------------------------------ source/serialization.txt | 2 -- 3 files changed, 2 insertions(+), 100 deletions(-) diff --git a/source/crud/update-many.txt b/source/crud/update-many.txt index d4db84ef..84d8a2f7 100644 --- a/source/crud/update-many.txt +++ b/source/crud/update-many.txt @@ -124,52 +124,4 @@ Update Many :copyable: true :dedent: :start-after: // start-pipeline-async - :end-before: // end-pipeline-async - -.. TODO: integrate into existing page - -Sample Class ------------- - -The code examples in this guide demonstrate how you can use builders to -create types to interact with documents in the sample collection ``plants.flowers``. -Documents in this collection are modeled by the following ``Flower`` class: - -.. literalinclude:: /includes/fundamentals/code-examples/builders.cs - :language: csharp - :dedent: - :start-after: start-model - :end-before: end-model - -Each builder class takes a generic type parameter -``TDocument`` which represents the type of document that you are working -with. In this guide, the ``Flower`` class is the document type used in -each builder class example. - -Define an Update ----------------- - -The ``UpdateDefinitionBuilder`` class provides a type-safe interface for -building up an update specification. Suppose you want to create an -update specification with the following criteria: - -- Create the new field ``SunRequirement`` -- Multiply the ``Price`` field value by 0.9 - -Use builders to create the update specification with the typed variant: - -.. code-block:: csharp - :copyable: true - - var builder = Builders.Update; - var update = builder.Set(f => f.SunRequirement, "Full sun").Mul(f => f.Price, 0.9); - -Alternatively, you can use string-based field names to define the update: - -.. code-block:: csharp - :copyable: true - - var builder = Builders.Update; - var update = builder.Set("SunRequirement", "Full sun").Mul("Price", 0.9); - -- `UpdateDefinitionBuilder <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.UpdateDefinitionBuilder-1.html>`__ \ No newline at end of file + :end-before: // end-pipeline-async \ No newline at end of file diff --git a/source/crud/update-one.txt b/source/crud/update-one.txt index 5bdd1db7..0359fbf9 100644 --- a/source/crud/update-one.txt +++ b/source/crud/update-one.txt @@ -112,52 +112,4 @@ Update One :copyable: true :dedent: :start-after: // start-pipeline-async - :end-before: // end-pipeline-async - -.. TODO: integrate into existing page - -Sample Class ------------- - -The code examples in this guide demonstrate how you can use builders to -create types to interact with documents in the sample collection ``plants.flowers``. -Documents in this collection are modeled by the following ``Flower`` class: - -.. literalinclude:: /includes/fundamentals/code-examples/builders.cs - :language: csharp - :dedent: - :start-after: start-model - :end-before: end-model - -Each builder class takes a generic type parameter -``TDocument`` which represents the type of document that you are working -with. In this guide, the ``Flower`` class is the document type used in -each builder class example. - -Define an Update ----------------- - -The ``UpdateDefinitionBuilder`` class provides a type-safe interface for -building up an update specification. Suppose you want to create an -update specification with the following criteria: - -- Create the new field ``SunRequirement`` -- Multiply the ``Price`` field value by 0.9 - -Use builders to create the update specification with the typed variant: - -.. code-block:: csharp - :copyable: true - - var builder = Builders.Update; - var update = builder.Set(f => f.SunRequirement, "Full sun").Mul(f => f.Price, 0.9); - -Alternatively, you can use string-based field names to define the update: - -.. code-block:: csharp - :copyable: true - - var builder = Builders.Update; - var update = builder.Set("SunRequirement", "Full sun").Mul("Price", 0.9); - -- `UpdateDefinitionBuilder <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.UpdateDefinitionBuilder-1.html>`__ \ No newline at end of file + :end-before: // end-pipeline-async \ No newline at end of file diff --git a/source/serialization.txt b/source/serialization.txt index a20bd58e..fd1bc74a 100644 --- a/source/serialization.txt +++ b/source/serialization.txt @@ -48,8 +48,6 @@ primitive types, collection types, and custom classes. For a full list of available serializers, see the `Serializers namespace API documentation <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.Serialization.Serializers.html>`__. -.. TODO: Revisit this page - .. _csharp-faq-object-serializer: ObjectSerializer From 9a5f2fc3ceb88fa5941898a8322763b21fea5ed6 Mon Sep 17 00:00:00 2001 From: Mike Woofter <108414937+mongoKart@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:37:40 -0500 Subject: [PATCH 2/2] delete csot --- source/connect/connection-options/csot.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 source/connect/connection-options/csot.txt diff --git a/source/connect/connection-options/csot.txt b/source/connect/connection-options/csot.txt deleted file mode 100644 index e69de29b..00000000