Skip to content

Commit 7bb5a38

Browse files
committed
fixes
1 parent 8fa3284 commit 7bb5a38

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

source/includes/quick-start/query-output.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

source/quick-start.txt

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Create a MongoDB Cluster
3636
.. step:: Update the Placeholders
3737

3838
Paste the connection string in your copy buffer into a file in your preferred text
39-
editor. Replace the "<username>" and "<password>" placeholders with
39+
editor. Replace the ``<username>`` and ``<password>`` placeholders with
4040
your database user's username and password.
4141

4242
Save this file to a safe location for use in the next step.
@@ -88,32 +88,45 @@ Set Up Your Project
8888
Query Your MongoDB Cluster from Your Application
8989
------------------------------------------------
9090

91-
In this step, you'll use the {+provider-short+}
92-
to connect to your MongoDB cluster and run a LINQ query on the sample data.
91+
.. procedure::
92+
:style: connected
93+
94+
.. step:: Create the Code File
95+
96+
Open the file named ``Program.cs`` in the base directory of your project. Copy the
97+
following sample code into ``Program.cs``:
98+
99+
.. literalinclude:: /includes/quick-start/Program.cs
100+
:language: csharp
101+
:dedent:
93102

94-
Open the file named ``Program.cs`` in the base directory of your project. Copy the
95-
following sample code into ``Program.cs``:
103+
.. step:: Run an Atlas Query
96104

97-
.. literalinclude:: /includes/quick-start/Program.cs
98-
:language: csharp
99-
:dedent:
105+
Run the following command in your shell. It should print the plot of the movie
106+
"Back to the Future" from the sample dataset:
100107

101-
This sample code queries your sample dataset in Atlas. Run it
102-
in your shell by using the following command:
108+
.. io-code-block::
109+
:copyable: true
103110

104-
.. code-block:: bash
111+
.. input::
112+
:language: none
113+
114+
dotnet run entity-quickstart.csproj
105115

106-
dotnet run entity-quickstart.csproj
116+
.. output::
117+
:language: none
118+
:visible: false
107119

108-
.. literalinclude:: /includes/quick-start/query-output.rst
109-
:copyable: false
120+
A young man is accidentally sent 30 years into the past in a time-traveling
121+
DeLorean invented by his friend, Dr. Emmett Brown, and must make sure his
122+
high-school-age parents unite in order to save his own existence.
110123

111-
.. tip::
124+
.. tip::
112125

113-
If your output is empty, ensure you have loaded the
114-
:atlas:`sample datasets </sample-data/>` into your cluster.
126+
If your output is empty, ensure you have loaded the
127+
:atlas:`sample datasets </sample-data/>` into your cluster.
115128

116-
After completing this step, you should have a working {+framework+} application that
129+
After completing these steps, you should have a working {+framework+} application that
117130
connects to your MongoDB cluster, runs a query on the
118131
sample data, and prints out the result.
119132

0 commit comments

Comments
 (0)