“How to MongoDB in C#” will be a multi-part blog-posts series:

How to MongoDB in C# — Part 1 How to MongoDB in C# — Part 2 How to MongoDB in C# — Part 3 How to MongoDB in C# — Part 4

Every new project holds new surprises and adventures, but imagine my surprise when realizing I am the victim who is going to work with MongoDB. As a C# developer who is accustomed to SQL server, I was like:

So.. when the news were digested, I did the next best thing — googled “MongoDB” ( also binged 😉 )

A few hours later, I was frustrated with my findings. There were a lot of examples on how to work my way up the old legacy driver, but very few ones with the new C# driver API.

And so I decided to write this blog-post series on “How to MongoDB in C#”, to save you the frustration part of my journey.

This post will briefly talk about how to setup MongoDB etc. (there are more then plenty tutorials concerning that topic). But, in the ones to follow, I will be focusing on the different ways MongoDB’s CRUD API has to offer, both standard and advanced (called Aggregation-FW). In order to reach the interesting stuff, we will have to setup our development environment.