44Find a Document
55===============
66
7- .. default-domain:: mongodb
7+ .. facet::
8+ :name: genre
9+ :values: reference
10+
11+ .. meta::
12+ :keywords: code example, .NET, operation
813
914.. contents:: On this page
1015 :local:
@@ -14,31 +19,11 @@ Find a Document
1419
1520You can retrieve a document by using the ``Find()`` method on a collection object.
1621
17- Examples
18- --------
19-
20- The examples on this page use the following ``Restaurant``, ``Address``, and ``GradeEntry``
21- classes as models:
22-
23- .. literalinclude:: /includes/code-examples/Restaurant.cs
24- :language: csharp
25- :copyable:
26- :dedent:
27-
28- .. literalinclude:: /includes/code-examples/Address.cs
29- :language: csharp
30- :copyable:
31- :dedent:
32-
33- .. literalinclude:: /includes/code-examples/GradeEntry.cs
34- :language: csharp
35- :copyable:
36- :dedent:
37-
38- .. include:: /includes/convention-pack-note.rst
22+ Example
23+ -------
3924
40- Find a Document Using Builders
41- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25+ Find a Document by Using Builders
26+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4227
4328The following example uses ``Builders`` to find a document in the ``restaurants``
4429collection that has a ``name`` field with a value of "Bagels N Buns".
@@ -74,8 +59,8 @@ corresponding code.
7459 For a fully runnable example of using the ``Find()`` method
7560 to synchronously find one document, see the `Synchronous Find One Example <{+example+}/find-one/FindOne.cs>`__.
7661
77- Find a Document Using LINQ
78- ~~~~~~~~~~~~~~~~~~~~~~~~~~
62+ Find a Document by Using LINQ
63+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7964
8065The following example uses LINQ to find a document in the ``restaurants``
8166collection that has a ``name`` field with a value of "Bagels N Buns".
0 commit comments