MongoDB.Bson 3.4.1

MongoDB C# Driver

You can get the latest stable release from the official Nuget.org feed or from our github releases page.

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
Official .NET driver for MongoDB.
103
MongoDB.Driver
Official .NET driver for MongoDB.
84
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
77
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
68
MongoDB.Driver
Official .NET driver for MongoDB.
67
MongoDB.Driver
Official .NET driver for MongoDB.
66
MongoDB.Driver
Official .NET driver for MongoDB.
65
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
64
MongoDB.Driver
Official .NET driver for MongoDB.
64
MongoDB.Driver.GridFS
GridFS Component of the Official MongoDB .NET Driver.
63
MongoDB.Driver
Official .NET driver for MongoDB.
63
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
63

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

Version Downloads Last updated
3.5.2 5 11/28/2025
3.5.1 8 11/21/2025
3.5.0 14 09/11/2025
3.4.3 11 08/20/2025
3.4.2 20 07/29/2025
3.4.1 19 07/19/2025
3.4.0 32 05/05/2025
3.3.0 28 03/28/2025
3.2.1 27 02/22/2025
3.2.0 32 02/13/2025
3.1.0 36 12/06/2024
3.0.0 41 10/19/2024
2.30.0 46 10/22/2024
2.29.0 38 09/19/2024
2.28.0 50 07/24/2024
2.27.0 50 06/30/2024
2.26.0 42 06/18/2024
2.25.0 51 04/13/2024
2.24.0 54 03/01/2024
2.23.2 52 03/01/2024
2.23.1 49 12/27/2023
2.23.0 45 12/21/2023
2.22.0 46 10/11/2023
2.21.0 61 08/19/2023
2.20.0 60 06/23/2023
2.19.2 60 05/25/2023
2.19.1 65 05/06/2023
2.19.0 57 08/04/2023
2.18.0 63 11/24/2022
2.17.1 53 11/26/2022
2.17.0 51 08/16/2023
2.16.1 58 08/04/2023
2.16.0 57 07/28/2022
2.15.1 56 08/15/2023
2.15.0 58 08/11/2023
2.14.1 65 09/24/2022
2.14.0 57 07/01/2022
2.14.0-beta1 62 08/15/2023
2.13.3 66 04/18/2023
2.13.2 61 08/03/2023
2.13.1 64 08/10/2022
2.13.0 56 11/01/2022
2.13.0-beta1 54 11/03/2022
2.12.5 62 08/04/2023
2.12.4 51 08/04/2023
2.12.3 68 08/23/2022
2.12.2 54 08/07/2023
2.12.1 57 09/14/2022
2.12.0 54 08/05/2023
2.12.0-beta1 53 10/30/2022
2.11.6 53 06/11/2022
2.11.5 54 06/13/2023
2.11.4 50 06/01/2023
2.11.3 52 08/09/2023
2.11.2 52 08/08/2023
2.11.1 59 08/07/2023
2.11.0 56 08/23/2022
2.11.0-beta2 57 08/15/2022
2.11.0-beta1 52 07/17/2023
2.10.4 60 08/03/2023
2.10.3 45 06/17/2023
2.10.2 54 06/19/2023
2.10.1 55 08/04/2023
2.10.0 50 06/22/2022
2.10.0-beta1 55 07/16/2023
2.9.3 74 07/15/2023
2.9.2 54 06/16/2023
2.9.1 62 11/01/2022
2.9.0 60 10/21/2022
2.9.0-beta2 51 08/07/2023
2.9.0-beta1 64 08/02/2023
2.8.1 46 09/22/2023
2.8.0 54 08/17/2023
2.7.3 64 09/02/2022
2.7.2 46 08/04/2023
2.7.1 58 10/02/2022
2.7.0 45 10/20/2023
2.7.0-beta0001 61 08/11/2023
2.6.1 54 07/08/2023
2.6.0 58 07/30/2023
2.5.1 58 08/14/2023
2.5.0 51 08/05/2023
2.4.4 47 08/11/2023
2.4.3 67 09/30/2022
2.4.2 63 09/20/2022
2.4.1 60 08/08/2023
2.4.0 78 10/08/2022
2.4.0-beta1 60 10/27/2022
2.3.0 53 08/05/2023
2.3.0-rc1 56 08/11/2023
2.3.0-beta1 60 08/06/2023
2.2.4 55 10/13/2022
2.2.3 52 08/15/2022
2.2.2 58 02/09/2023
2.2.1 52 10/16/2022
2.2.0 56 08/10/2023
2.2.0-rc0 55 08/11/2023
2.1.1 65 08/16/2023
2.1.0 58 08/19/2023
2.1.0-rc1 50 08/16/2023
2.1.0-rc0 51 08/19/2023
2.0.2 52 08/22/2023
2.0.1 56 11/13/2022
2.0.0 59 09/14/2022
2.0.0-rc0 51 08/18/2023
2.0.0-beta4 60 09/18/2022
2.0.0-beta3 56 09/05/2022
2.0.0-beta2 48 08/24/2023
2.0.0-beta1 65 11/21/2022