MongoDB.Driver 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.Driver.

Packages Downloads
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
20
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
22
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
25
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
26
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
28
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
29
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
30
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
31
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
34
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
36
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
40
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
51
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
57
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
73
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
107
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
112
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
115
Alpata.Helper
Option yönetimi için generik eklentiler sağlandı
307

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

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