Skip to content

Commit cb6ab23

Browse files
Review updates (#64)
1 parent 546a7ae commit cb6ab23

File tree

9 files changed

+19
-33
lines changed

9 files changed

+19
-33
lines changed

source/includes/code-examples/Address.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
using MongoDB.Bson;
2-
using MongoDB.Bson.Serialization.Attributes;
3-
4-
namespace CSharpExamples.UsageExamples;
5-
61
public class Address
72
{
83
public string Building { get; set; }

source/includes/code-examples/GradeEntry.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
namespace CSharpExamples.UsageExamples;
2-
31
public class GradeEntry
42
{
53
public DateTime Date { get; set; }

source/includes/code-examples/Restaurant.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
using MongoDB.Bson;
2-
using MongoDB.Bson.Serialization.Attributes;
3-
4-
namespace CSharpExamples.UsageExamples;
5-
6-
// start-model
71
public class Restaurant
82
{
93
public ObjectId Id { get; set; }
@@ -20,5 +14,4 @@ public class Restaurant
2014
public string Borough { get; set; }
2115

2216
public List<GradeEntry> Grades { get; set; }
23-
}
24-
// end-model
17+
}

source/usage-examples/deleteOne.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ corresponding code.
6767
:dedent:
6868

6969
For a fully runnable example of the ``DeleteOne()`` method, see the
70-
`Asynchronous Delete One Example <{+example+}/DeleteOneAsync.cs>`__.
70+
`Asynchronous Delete One Example <{+example+}/delete-one/DeleteOneAsync.cs>`__.
7171

7272
.. tab:: Synchronous
7373
:tabid: builders-sync
@@ -80,7 +80,7 @@ corresponding code.
8080
:dedent:
8181

8282
For a fully runnable example of the ``DeleteOne()`` method, see the
83-
`Synchronous Delete One Example <{+example+}/DeleteOneSync.cs>`__
83+
`Synchronous Delete One Example <{+example+}/delete-one/DeleteOne.cs>`__
8484

8585
Expected Result
8686
~~~~~~~~~~~~~~~

source/usage-examples/findMany.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ corresponding code.
6161

6262
For a fully runnable example of using the ``Find()`` method to asynchronously
6363
find multiple documents, see
64-
`Asynchronous Find Multiple Example <{+example+}/FindManyAsync.cs>`__.
64+
`Asynchronous Find Multiple Example <{+example+}/find-many/FindManyAsync.cs>`__.
6565

6666
.. tab:: Synchronous
6767
:tabid: builders-sync
@@ -75,7 +75,7 @@ corresponding code.
7575

7676
For a fully runnable example of using the ``Find()`` method to synchronously
7777
find multiple documents, see
78-
`Synchronous Find Multiple Example <{+example+}/FindMany.cs>`__.
78+
`Synchronous Find Multiple Example <{+example+}/find-many/FindMany.cs>`__.
7979

8080
Find Documents Using LINQ
8181
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -100,7 +100,7 @@ corresponding code.
100100

101101
For a fully runnable example of using the ``Find()`` method to asynchronously
102102
find multiple documents, see
103-
`Asynchronous Find Multiple Example <{+example+}/FindManyAsync.cs>`__.
103+
`Asynchronous Find Multiple Example <{+example+}/find-many/FindManyAsync.cs>`__.
104104

105105
.. tab:: Synchronous
106106
:tabid: linq-sync
@@ -114,7 +114,7 @@ corresponding code.
114114

115115
For a fully runnable example of using the ``Find()`` method to synchronously
116116
find multiple documents, see
117-
`Synchronous Find Multiple Example <{+example+}/FindMany.cs>`__.
117+
`Synchronous Find Multiple Example <{+example+}/find-many/FindMany.cs>`__.
118118

119119
.. _csharp_find_all:
120120

@@ -140,7 +140,7 @@ corresponding code.
140140

141141
For a fully runnable example of using the ``Find()`` method to asynchronously
142142
find multiple documents, see
143-
`Asynchronous Find Multiple Example <{+example+}/FindManyAsync.cs>`__.
143+
`Asynchronous Find Multiple Example <{+example+}/find-many/FindManyAsync.cs>`__.
144144

145145
.. tab:: Synchronous
146146
:tabid: find-all-sync
@@ -154,7 +154,7 @@ corresponding code.
154154

155155
For a fully runnable example of using the ``Find()`` method to synchronously
156156
find multiple documents, see
157-
`Synchronous Find Multiple Example <{+example+}/FindMany.cs>`__.
157+
`Synchronous Find Multiple Example <{+example+}/find-many/FindMany.cs>`__.
158158

159159
Expected Result
160160
~~~~~~~~~~~~~~~

source/usage-examples/findOne.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ corresponding code.
5959
:dedent:
6060

6161
For a fully runnable example of using the ``Find()`` method
62-
to asynchronously find one document, see the `Asynchronous Find One Example <{+example+}/FindOneAsync.cs>`__.
62+
to asynchronously find one document, see the `Asynchronous Find One Example <{+example+}/find-one/FindOneAsync.cs>`__.
6363

6464
.. tab:: Synchronous
6565
:tabid: builders-sync
@@ -72,7 +72,7 @@ corresponding code.
7272
:dedent:
7373

7474
For a fully runnable example of using the ``Find()`` method
75-
to synchronously find one document, see the `Synchronous Find One Example <{+example+}/FindOne.cs>`__.
75+
to synchronously find one document, see the `Synchronous Find One Example <{+example+}/find-one/FindOne.cs>`__.
7676

7777
Find a Document Using LINQ
7878
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -96,7 +96,7 @@ corresponding code.
9696
:dedent:
9797

9898
For a fully runnable example of using the ``Find()`` method
99-
to asynchronously find one document, see the `Asynchronous Find One Example <{+example+}/FindOneAsync.cs>`__.
99+
to asynchronously find one document, see the `Asynchronous Find One Example <{+example+}/find-one/FindOneAsync.cs>`__.
100100

101101
.. tab:: Synchronous
102102
:tabid: linq-sync
@@ -109,7 +109,7 @@ corresponding code.
109109
:dedent:
110110

111111
For a fully runnable example of using the ``Find()`` method
112-
to synchronously find one document, see the `Synchronous Find One Example <{+example+}/FindOne.cs>`__.
112+
to synchronously find one document, see the `Synchronous Find One Example <{+example+}/find-one/FindOne.cs>`__.
113113

114114
Expected Result
115115
~~~~~~~~~~~~~~~

source/usage-examples/insertMany.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ corresponding code.
5757
:dedent:
5858

5959
For a fully runnable example of the ``InsertManyAsync()`` operation, see the
60-
`InsertManyAsync code sample <{+example+}/InsertMany.cs>`__.
60+
`InsertManyAsync code sample <{+example+}/insert-many/InsertMany.cs>`__.
6161

6262
.. tab:: Synchronous
6363
:tabid: insert-many-sync
@@ -70,7 +70,7 @@ corresponding code.
7070
:dedent:
7171

7272
For a fully runnable example of the ``InsertMany()`` operation, see the
73-
`InsertMany code sample <{+example+}/InsertManyAsync.cs>`__.
73+
`InsertMany code sample <{+example+}/insert-many/InsertManyAsync.cs>`__.
7474

7575
Expected Result
7676
~~~~~~~~~~~~~~~

source/usage-examples/insertOne.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ corresponding code.
5757
:dedent:
5858

5959
For a fully runnable example of the ``InsertOneAsync()`` operation, see the
60-
`Asynchronous Insert One Example <{+example+}/InsertOneAsync.cs>`__.
60+
`Asynchronous Insert One Example <{+example+}/insert-one/InsertOneAsync.cs>`__.
6161

6262
.. tab:: Synchronous
6363
:tabid: insert-one-sync
@@ -70,7 +70,7 @@ corresponding code.
7070
:dedent:
7171

7272
For a fully runnable example of the ``InsertOne()`` operation, see the
73-
`Synchronous Insert One Example <{+example+}/InsertOne.cs>`__.
73+
`Synchronous Insert One Example <{+example+}/insert-one/InsertOne.cs>`__.
7474

7575
Expected Result
7676
~~~~~~~~~~~~~~~

source/usage-examples/updateOne.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ corresponding code.
6969
:dedent:
7070

7171
For a fully runnable example of the ``UpdateOneAsync()`` operation, see the
72-
`UpdateOneAsync Example <{+example+}/UpdateOneAsync.cs>`__.
72+
`UpdateOneAsync Example <{+example+}/update-one/UpdateOneAsync.cs>`__.
7373

7474
.. tab:: Synchronous
7575
:tabid: update-many-sync
@@ -82,7 +82,7 @@ corresponding code.
8282
:dedent:
8383

8484
For a fully runnable example of the ``UpdateOneAsync()`` operation, see the
85-
`UpdateOne Example <{+example+}/UpdateOne.cs>`__.
85+
`UpdateOne Example <{+example+}/update-one/UpdateOne.cs>`__.
8686

8787
Expected Result
8888
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)