MongoDB.Driver.GridFS 2.30.0

Prefix Reserved
dotnet add package MongoDB.Driver.GridFS --version 2.30.0                
NuGet\Install-Package MongoDB.Driver.GridFS -Version 2.30.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.30.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MongoDB.Driver.GridFS --version 2.30.0                
#r "nuget: MongoDB.Driver.GridFS, 2.30.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MongoDB.Driver.GridFS as a Cake Addin
#addin nuget:?package=MongoDB.Driver.GridFS&version=2.30.0

// Install MongoDB.Driver.GridFS as a Cake Tool
#tool nuget:?package=MongoDB.Driver.GridFS&version=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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (151)

Showing the top 5 NuGet packages that depend on MongoDB.Driver.GridFS:

Package Downloads
MassTransit.MongoDb

MassTransit MongoDb persistence support; MassTransit provides a developer-focused, modern platform for creating distributed applications without complexity.

Bsynchro.DataAccess.Mongo.Abstract

Exposing different methods interfaces to execute on a Mongo database

Microsoft.KernelMemory.MongoDbAtlas

MongoDb Atlas connector for Microsoft Kernel Memory, to store and search memory records with embeddings, and files.

UserProfileManagement.Data

Package Description

NServiceBus.Persistence.MongoDb

MongoDB Persistence for NServiceBus.

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on MongoDB.Driver.GridFS:

Repository Stars
MassTransit/MassTransit
Distributed Application Framework for .NET
ravendb/ravendb
ACID Document Database
Squidex/squidex
Headless CMS and Content Managment Hub
grandnode/grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
microsoft/kernel-memory
RAG architecture: index and query any data using LLM and natural language, track sources, show citations, asynchronous memory patterns.
Version Downloads Last updated
2.30.0 250,144 10/16/2024
2.29.0 73,119 9/18/2024
2.28.0 301,309 7/23/2024
2.27.0 228,566 6/28/2024
2.26.0 67,664 6/12/2024
2.25.0 461,238 4/12/2024
2.24.0 367,446 2/21/2024
2.23.2 4,943 2/20/2024
2.23.1 636,268 12/15/2023
2.23.0 25,911 12/11/2023
2.22.0 358,974 10/9/2023
2.21.0 318,141 8/10/2023
2.20.0 479,345 6/21/2023
2.19.2 415,487 5/25/2023
2.19.1 695,956 3/27/2023
2.19.0 603,727 1/27/2023
2.18.0 783,469 10/14/2022
2.17.1 538,694 7/30/2022
2.17.0 124,279 7/18/2022
2.16.1 307,604 6/21/2022
2.16.0 92,847 6/7/2022
2.15.1 227,132 5/4/2022
2.15.0 607,069 3/9/2022
2.14.1 438,719 12/3/2021
2.14.0 38,235 11/24/2021
2.14.0-beta1 4,430 10/15/2021
2.13.3 95,115 11/23/2021
2.13.2 1,209,835 10/6/2021
2.13.1 375,271 8/4/2021
2.13.0 190,817 7/13/2021
2.13.0-beta1 2,869 3/31/2021
2.12.5 14,624 11/20/2021
2.12.4 181,547 6/4/2021
2.12.3 175,972 5/4/2021
2.12.2 117,196 4/7/2021
2.12.1 191,240 3/23/2021
2.12.0 114,425 3/3/2021
2.12.0-beta1 2,100 11/6/2020
2.11.6 220,406 1/20/2021
2.11.5 235,841 12/2/2020
2.11.4 262,291 11/4/2020
2.11.3 91,602 10/15/2020
2.11.2 243,866 9/10/2020
2.11.1 129,620 8/25/2020
2.11.0 98,897 7/30/2020
2.11.0-beta2 1,641 6/10/2020
2.11.0-beta1 1,789 4/10/2020
2.10.4 447,545 5/5/2020
2.10.3 159,795 4/7/2020
2.10.2 406,088 2/14/2020
2.10.1 103,246 1/15/2020
2.10.0 301,930 12/10/2019
2.10.0-beta1 2,922 10/2/2019
2.9.3 120,265 11/8/2019
2.9.2 218,104 9/30/2019
2.9.1 112,728 8/21/2019
2.9.0 5,960 8/15/2019
2.9.0-beta2 1,845 6/17/2019
2.9.0-beta1 4,441 3/13/2019
2.8.1 520,449 5/15/2019
2.8.0 112,749 3/13/2019
2.7.3 128,158 1/24/2019
2.7.2 255,648 11/10/2018
2.7.1 2,960 11/8/2018
2.7.0 336,563 6/27/2018
2.7.0-beta0001 2,893 4/22/2018
2.6.1 99,362 5/17/2018
2.6.0 25,794 4/24/2018
2.5.1 21,386 4/19/2018
2.5.0 282,463 12/12/2017
2.4.4 386,391 6/8/2017
2.4.3 47,013 3/9/2017
2.4.2 16,977 2/2/2017
2.4.1 26,507 1/4/2017
2.4.0 19,846 11/29/2016
2.4.0-beta1 2,840 10/5/2016
2.3.0 91,261 9/23/2016
2.3.0-rc1 2,220 8/29/2016
2.3.0-beta1 1,941 8/3/2016
2.2.4 65,597 5/18/2016
2.2.3 38,943 2/2/2016
2.2.2 6,251 1/15/2016
2.2.1 4,557 1/8/2016
2.2.0 10,153 12/7/2015
2.2.0-rc0 1,955 11/18/2015
2.1.1 10,949 11/11/2015
2.1.0 9,272 10/19/2015
2.1.0-rc1 2,029 10/7/2015
2.1.0-rc0 2,080 9/17/2015