MongoDB.Bson 3.6.0

MongoDB C# Driver

MongoDB.Driver Documentation Documentation License

The official MongoDB .NET/C# driver.

The MongoDB .NET/C# driver follows semantic versioning since v3.0.0 of its releases.

Getting Started

Untyped Documents

using MongoDB.Bson;
using MongoDB.Driver;
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection<BsonDocument>("bar");

await collection.InsertOneAsync(new BsonDocument("Name", "Jack"));

var list = await collection.Find(new BsonDocument("Name", "Jack"))
    .ToListAsync();

foreach(var document in list)
{
    Console.WriteLine(document["Name"]);
}

Typed Documents

using MongoDB.Bson;
using MongoDB.Driver;
public class Person
{
    public ObjectId Id { get; set; }
    public string Name { get; set; }
}
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection<Person>("bar");

await collection.InsertOneAsync(new Person { Name = "Jack" });

var list = await collection.Find(x => x.Name == "Jack")
    .ToListAsync();

foreach(var person in list)
{
    Console.WriteLine(person.Name);
}

Documentation

Questions/Bug Reports

If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here.

Contributing

Please see our guidelines for contributing to the driver.

Thank you to everyone who has contributed to this project.

Showing the top 20 packages that depend on MongoDB.Bson.

Packages Downloads
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
51
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver
51
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver
50
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
49
MongoDB.Driver
Official .NET driver for MongoDB.
49
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver.
49
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver
48
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
47
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver
47
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver.
47
mongocsharpdriver
This package contains the legacy driver. The new driver's package name is MongoDB.Driver
46
MongoDB.Driver
Official .NET driver for MongoDB.
46
MongoDB.Driver
Official .NET driver for MongoDB.
45

https://github.com/mongodb/mongo-csharp-driver/releases/tag/v3.6.0

Version Downloads Last updated
3.6.0 5 1/20/2026
3.5.2 8 11/28/2025
3.5.1 7 11/20/2025
3.5.0 12 9/11/2025
3.4.3 18 8/19/2025
3.4.2 20 7/27/2025
3.4.1 19 7/19/2025
3.4.0 26 5/3/2025
3.3.0 29 3/28/2025
3.2.1 34 2/21/2025
3.2.0 33 2/21/2025
3.1.0 32 12/12/2024
3.0.0 24 10/29/2024
2.30.0 30 10/29/2024
2.29.0 27 9/23/2024
2.28.0 42 8/11/2024
2.27.0 33 6/29/2024
2.26.0 32 6/25/2024
2.25.0 39 8/23/2024
2.24.0 40 3/8/2024
2.23.2 39 3/8/2024
2.23.1 36 3/8/2024
2.23.0 34 3/8/2024
2.22.0 40 3/8/2024
2.21.0 40 3/8/2024
2.20.0 37 7/2/2023
2.19.2 38 3/8/2024
2.19.1 39 3/8/2024
2.19.0 44 3/8/2024
2.18.0 42 3/8/2024
2.17.1 46 3/8/2024
2.17.0 42 3/8/2024
2.16.1 35 3/8/2024
2.16.0 50 3/8/2024
2.15.1 43 3/8/2024
2.15.0 34 3/8/2024
2.14.1 42 3/8/2024
2.14.0 40 3/8/2024
2.14.0-beta1 46 3/8/2024
2.13.3 41 3/8/2024
2.13.2 39 3/8/2024
2.13.1 33 3/8/2024
2.13.0 40 3/8/2024
2.13.0-beta1 34 3/8/2024
2.12.5 37 3/8/2024
2.12.4 34 3/8/2024
2.12.3 43 3/8/2024
2.12.2 39 3/8/2024
2.12.1 40 3/8/2024
2.12.0 37 3/8/2024
2.12.0-beta1 41 3/8/2024
2.11.6 36 3/8/2024
2.11.5 37 3/8/2024
2.11.4 41 4/12/2022
2.11.3 42 3/8/2024
2.11.2 36 3/8/2024
2.11.1 42 3/8/2024
2.11.0 44 3/8/2024
2.11.0-beta2 34 3/8/2024
2.11.0-beta1 37 3/8/2024
2.10.4 43 3/8/2024
2.10.3 32 3/8/2024
2.10.2 41 3/8/2024
2.10.1 35 3/8/2024
2.10.0 39 3/8/2024
2.10.0-beta1 34 3/8/2024
2.9.3 37 3/8/2024
2.9.2 44 3/8/2024
2.9.1 40 3/8/2024
2.9.0 37 3/8/2024
2.9.0-beta2 39 3/8/2024
2.9.0-beta1 39 3/8/2024
2.8.1 37 3/8/2024
2.8.0 42 3/8/2024
2.7.3 44 3/8/2024
2.7.2 38 3/8/2024
2.7.1 44 3/8/2024
2.7.0 36 3/8/2024
2.7.0-beta0001 40 3/8/2024
2.6.1 45 3/8/2024
2.6.0 41 3/8/2024
2.5.1 36 3/8/2024
2.5.0 43 3/8/2024
2.4.4 39 3/8/2024
2.4.3 41 3/8/2024
2.4.2 40 3/8/2024
2.4.1 38 3/8/2024
2.4.0 46 3/8/2024
2.4.0-beta1 36 3/8/2024
2.3.0 43 3/8/2024
2.3.0-rc1 40 3/8/2024
2.3.0-beta1 33 3/8/2024
2.2.4 37 3/8/2024
2.2.3 37 3/8/2024
2.2.2 37 3/8/2024
2.2.1 42 3/8/2024
2.2.0 38 3/8/2024
2.2.0-rc0 37 3/8/2024
2.1.1 36 3/8/2024
2.1.0 37 3/8/2024
2.1.0-rc1 33 3/8/2024
2.1.0-rc0 36 3/8/2024
2.0.2 34 3/8/2024
2.0.1 39 3/8/2024
2.0.0 40 3/8/2024
2.0.0-rc0 38 3/8/2024
2.0.0-beta4 33 3/8/2024
2.0.0-beta3 40 3/8/2024
2.0.0-beta2 37 3/8/2024
2.0.0-beta1 38 3/8/2024