Skip to content

Commit 6a617b1

Browse files
committed
staging
1 parent 87b5642 commit 6a617b1

File tree

3 files changed

+2
-100
lines changed

3 files changed

+2
-100
lines changed

source/crud/update-many.txt

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -124,52 +124,4 @@ Update Many
124124
:copyable: true
125125
:dedent:
126126
:start-after: // start-pipeline-async
127-
:end-before: // end-pipeline-async
128-
129-
.. TODO: integrate into existing page
130-
131-
Sample Class
132-
------------
133-
134-
The code examples in this guide demonstrate how you can use builders to
135-
create types to interact with documents in the sample collection ``plants.flowers``.
136-
Documents in this collection are modeled by the following ``Flower`` class:
137-
138-
.. literalinclude:: /includes/fundamentals/code-examples/builders.cs
139-
:language: csharp
140-
:dedent:
141-
:start-after: start-model
142-
:end-before: end-model
143-
144-
Each builder class takes a generic type parameter
145-
``TDocument`` which represents the type of document that you are working
146-
with. In this guide, the ``Flower`` class is the document type used in
147-
each builder class example.
148-
149-
Define an Update
150-
----------------
151-
152-
The ``UpdateDefinitionBuilder`` class provides a type-safe interface for
153-
building up an update specification. Suppose you want to create an
154-
update specification with the following criteria:
155-
156-
- Create the new field ``SunRequirement``
157-
- Multiply the ``Price`` field value by 0.9
158-
159-
Use builders to create the update specification with the typed variant:
160-
161-
.. code-block:: csharp
162-
:copyable: true
163-
164-
var builder = Builders<Flower>.Update;
165-
var update = builder.Set(f => f.SunRequirement, "Full sun").Mul(f => f.Price, 0.9);
166-
167-
Alternatively, you can use string-based field names to define the update:
168-
169-
.. code-block:: csharp
170-
:copyable: true
171-
172-
var builder = Builders<Flower>.Update;
173-
var update = builder.Set("SunRequirement", "Full sun").Mul("Price", 0.9);
174-
175-
- `UpdateDefinitionBuilder <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.UpdateDefinitionBuilder-1.html>`__
127+
:end-before: // end-pipeline-async

source/crud/update-one.txt

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -112,52 +112,4 @@ Update One
112112
:copyable: true
113113
:dedent:
114114
:start-after: // start-pipeline-async
115-
:end-before: // end-pipeline-async
116-
117-
.. TODO: integrate into existing page
118-
119-
Sample Class
120-
------------
121-
122-
The code examples in this guide demonstrate how you can use builders to
123-
create types to interact with documents in the sample collection ``plants.flowers``.
124-
Documents in this collection are modeled by the following ``Flower`` class:
125-
126-
.. literalinclude:: /includes/fundamentals/code-examples/builders.cs
127-
:language: csharp
128-
:dedent:
129-
:start-after: start-model
130-
:end-before: end-model
131-
132-
Each builder class takes a generic type parameter
133-
``TDocument`` which represents the type of document that you are working
134-
with. In this guide, the ``Flower`` class is the document type used in
135-
each builder class example.
136-
137-
Define an Update
138-
----------------
139-
140-
The ``UpdateDefinitionBuilder`` class provides a type-safe interface for
141-
building up an update specification. Suppose you want to create an
142-
update specification with the following criteria:
143-
144-
- Create the new field ``SunRequirement``
145-
- Multiply the ``Price`` field value by 0.9
146-
147-
Use builders to create the update specification with the typed variant:
148-
149-
.. code-block:: csharp
150-
:copyable: true
151-
152-
var builder = Builders<Flower>.Update;
153-
var update = builder.Set(f => f.SunRequirement, "Full sun").Mul(f => f.Price, 0.9);
154-
155-
Alternatively, you can use string-based field names to define the update:
156-
157-
.. code-block:: csharp
158-
:copyable: true
159-
160-
var builder = Builders<Flower>.Update;
161-
var update = builder.Set("SunRequirement", "Full sun").Mul("Price", 0.9);
162-
163-
- `UpdateDefinitionBuilder <{+new-api-root+}/MongoDB.Driver/MongoDB.Driver.UpdateDefinitionBuilder-1.html>`__
115+
:end-before: // end-pipeline-async

source/serialization.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ primitive types, collection types, and custom classes.
4848
For a full list of available serializers, see the
4949
`Serializers namespace API documentation <{+new-api-root+}/MongoDB.Bson/MongoDB.Bson.Serialization.Serializers.html>`__.
5050

51-
.. TODO: Revisit this page
52-
5351
.. _csharp-faq-object-serializer:
5452

5553
ObjectSerializer

0 commit comments

Comments
 (0)