Installing MongoDB Driver

This lesson contains instructions on how to install MongoDB driver on your machine.

We'll cover the following

Installing MongoDB Driver Package

The guys from MongoDB provided a wide range of drivers for different programming languages-- drivers are client libraries that an application can use.

For .NET all we need to do is install the NuGet package:

Install-Package MongoDB.Driver -Version 2.4.4

The MongoDB driver allows us to work with MongoDB using different programming languages, in our case, C#.

This will include three libraries in our project:

  • MongoDB.Bson – library used to serialize, deserialize and do other forms of manipulation with BSON documents.

  • MongoDB.Driver – the driver itself, used for communication with MongoDB.

  • MongoDB.Driver.Core – infrastructure on which the driver has been built.

All of the above libraries will help us in implementing the CRUD functions.

Get hands-on with 1400+ tech skills courses.