© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
L. CarterBeginning MongoDB Atlas with .NEThttps://doi.org/10.1007/978-1-4842-9550-2_7

7. Adding MongoDB

Luce Carter1  
(1)
Manchester, UK
 

It’s time for us to bring together two amazing developer technologies: .NET and MongoDB. By the end of this chapter, we’ll be able to connect our application to our Atlas cluster and return a list of existing databases to test the connection. This gives us a great starting point to build upon in later chapters.

Going forward, I am going to be using screenshots from Visual Studio, but you can work on your application however you want.

Add the MongoDB NuGet Package

The first step is to add the MongoDB C# driver. This gives us ...

Get Beginning MongoDB Atlas with .NET: Flexible and Scalable Document Data Storage for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.