MongoDB.Bson 3.13.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
Alpata.ETSS.Model
Package Description
48
Alpha.UrunTicaret.Model
Paketin içeriği
39
Alpha.UrunTicaret.Model
Paketin içeriği
114
Alpha.UrunTicaret.Model
Paketin içeriği
188
MongoDB.Driver
Official .NET driver for MongoDB.
42
MongoDB.Driver
Official .NET driver for MongoDB.
148
MongoDB.Driver
Official .NET driver for MongoDB.
637
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
36
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
37
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
39
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
44
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
51
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
154
MongoDB.Driver.Core
Core Component of the Official MongoDB .NET Driver.
617
OctaPull.File.Model
Paketin içeriği
36
OctaPull.File.Model
Paketin içeriği
43
OctaPull.File.Model
Paketin içeriği
413

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

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