title: MongoDB Connecting to Atlas Cloud Database C#
body: <p>I'm having some trouble getting my C# app connected to my MongoDB on Atlas. The documentation on the website wants me to do this:</p>
  <pre><code>using MongoDB.Bson;
  using MongoDB.Driver;
  // Replace the uri string with your MongoDB deployment's connection string.
  var client = new MongoClient(
      &quot;mongodb+srv://&lt;username&gt;:&lt;password&gt;@&lt;cluster-address&gt;/test?w=majority&quot;
  );
  var database = client.GetDatabase(&quot;test&quot;);
  </code></pre>
  <p>But the drivers I downloaded (version 2.13) dont seem to have the <code>GetDatabase</code> function in the <code>MongoClient</code> namespace. Doing some digging I found  a code snippet that seems to indicate that <code>GetDatabase</code> was depreciated in lieu of just using <code>MongoClient</code>. I just wanted to know if that was correct or if I had some bad drivers. Thanks in advance!</p>