MongoDB.Driver.GridFS 2.30.0

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.GridFS.

Packages Downloads
Flowaccount.Data
Application Core
98
Flowaccount.Data
Application Core
62
Flowaccount.Data
Application Core
53
Flowaccount.Data
Application Core
51
Flowaccount.Data
Application Core
49
Flowaccount.Data
Application Core
44
Flowaccount.Data
Application Core
43
Flowaccount.Data
Application Core
37
Flowaccount.Data
Application Core
35
Flowaccount.Data
Application Core
34
Flowaccount.Data
Application Core
33
Flowaccount.Data
Application Core
32
Flowaccount.Data
Application Core
31
Flowaccount.Data
Application Core
30

https://github.com/mongodb/mongo-csharp-driver/releases/tag/v2.30.0

.NET Framework 4.7.2

.NET Standard 2.0

.NET Standard 2.1

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