MongoDB.Bson 3.5.1

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
Alpata.ETSS.Model
Package Description
21
Alpha.UrunTicaret.Model
Paketin içeriği
24
Alpha.UrunTicaret.Model
Paketin içeriği
27
Alpha.UrunTicaret.Model
Paketin içeriği
174
MongoDB.Driver
Official .NET driver for MongoDB.
18
MongoDB.Driver
Official .NET driver for MongoDB.
19
MongoDB.Driver
Official .NET driver for MongoDB.
20
MongoDB.Driver
Official .NET driver for MongoDB.
112
MongoDB.Driver
Official .NET driver for MongoDB.
565
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
18
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
19
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
20
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
109
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
557
OctaPull.File.Model
Paketin içeriği
21
OctaPull.File.Model
Paketin içeriği
343

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

Version Downloads Last updated
3.5.2 4 12/01/2025
3.5.1 4 11/22/2025
3.5.0 8 09/15/2025
3.4.3 9 08/20/2025
3.4.2 11 07/30/2025
3.4.1 10 07/30/2025
3.4.0 12 05/30/2025
3.3.0 13 04/05/2025
3.2.1 13 03/07/2025
3.2.0 12 03/07/2025
3.1.0 12 03/07/2025
3.0.0 12 03/07/2025
2.30.0 13 03/07/2025
2.29.0 12 03/07/2025
2.28.0 19 07/30/2024
2.27.0 14 01/02/2025
2.26.0 14 06/20/2024
2.25.0 151 06/05/2024
2.24.0 16 02/21/2024
2.23.2 14 03/01/2024
2.23.1 17 12/26/2023
2.23.0 14 01/03/2024
2.22.0 16 12/04/2023
2.21.0 14 03/02/2024
2.20.0 15 01/25/2024
2.19.2 17 01/13/2024
2.19.1 13 11/13/2023
2.19.0 14 08/18/2023
2.18.0 629 08/18/2023
2.17.1 16 03/02/2024
2.17.0 15 03/02/2024
2.16.1 14 12/04/2023
2.16.0 17 01/28/2024
2.15.1 14 12/18/2023
2.15.0 15 03/02/2024
2.14.1 15 11/20/2023
2.14.0 17 03/01/2024
2.14.0-beta1 15 03/17/2024
2.13.3 15 12/31/2023
2.13.2 15 11/04/2023
2.13.1 16 11/05/2023
2.13.0 18 03/05/2024
2.13.0-beta1 14 03/17/2024
2.12.5 17 01/09/2024
2.12.4 14 01/14/2024
2.12.3 15 01/27/2024
2.12.2 16 03/02/2024
2.12.1 14 03/01/2024
2.12.0 15 03/02/2024
2.12.0-beta1 14 10/05/2024
2.11.6 12 03/03/2024
2.11.5 17 01/20/2024
2.11.4 14 03/03/2024
2.11.3 13 11/07/2023
2.11.2 15 03/03/2024
2.11.1 16 01/28/2024
2.11.0 17 08/31/2023
2.11.0-beta2 16 03/17/2024
2.11.0-beta1 14 03/17/2024
2.10.4 15 03/03/2024
2.10.3 15 11/07/2023
2.10.2 14 03/03/2024
2.10.1 15 03/02/2024
2.10.0 13 12/29/2023
2.10.0-beta1 17 03/17/2024
2.9.3 15 03/01/2024
2.9.2 16 01/13/2024
2.9.1 13 03/12/2024
2.9.0 15 03/01/2024
2.9.0-beta2 15 03/13/2024
2.9.0-beta1 15 03/18/2024
2.8.1 15 10/31/2023
2.8.0 15 03/01/2024
2.7.3 16 11/07/2023
2.7.2 16 03/03/2024
2.7.1 16 03/28/2024
2.7.0 15 03/02/2024
2.7.0-beta0001 15 03/17/2024
2.6.1 14 03/02/2024
2.6.0 15 03/01/2024
2.5.1 15 03/02/2024
2.5.0 15 03/01/2024
2.4.4 17 03/02/2024
2.4.3 15 01/19/2024
2.4.2 16 03/02/2024
2.4.1 16 01/26/2024
2.4.0 15 01/05/2024
2.4.0-beta1 15 03/02/2024
2.3.0 16 03/01/2024
2.3.0-rc1 14 03/03/2024
2.3.0-beta1 15 03/17/2024
2.2.4 14 03/01/2024
2.2.3 16 01/05/2024
2.2.2 15 11/04/2023
2.2.1 16 03/02/2024
2.2.0 14 03/01/2024
2.2.0-rc0 14 03/13/2024
2.1.1 17 12/30/2023
2.1.0 16 01/28/2024
2.1.0-rc1 11 03/14/2024
2.1.0-rc0 13 03/13/2024
2.0.2 14 03/02/2024
2.0.1 15 03/02/2024
2.0.0 15 12/14/2023
2.0.0-rc0 14 01/23/2024
2.0.0-beta4 14 03/12/2024
2.0.0-beta3 13 03/13/2024
2.0.0-beta2 14 03/12/2024
2.0.0-beta1 15 03/12/2024