Etherna.MongoDB.Driver
3.0.1
See the version list below for details.
dotnet add package Etherna.MongoDB.Driver --version 3.0.1
NuGet\Install-Package Etherna.MongoDB.Driver -Version 3.0.1
<PackageReference Include="Etherna.MongoDB.Driver" Version="3.0.1" />
paket add Etherna.MongoDB.Driver --version 3.0.1
#r "nuget: Etherna.MongoDB.Driver, 3.0.1"
// Install Etherna.MongoDB.Driver as a Cake Addin #addin nuget:?package=Etherna.MongoDB.Driver&version=3.0.1 // Install Etherna.MongoDB.Driver as a Cake Tool #tool nuget:?package=Etherna.MongoDB.Driver&version=3.0.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 Etherna.MongoDB.Bson;
using Etherna.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 Etherna.MongoDB.Bson;
using Etherna.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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- DnsClient (>= 1.6.1)
- Etherna.MongoDB.Bson (>= 3.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
- SharpCompress (>= 0.30.1)
- Snappier (>= 1.0.0)
- System.Buffers (>= 4.5.1)
- System.Net.Http (>= 4.3.4)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- ZstdSharp.Port (>= 0.7.3)
-
.NETStandard 2.1
- DnsClient (>= 1.6.1)
- Etherna.MongoDB.Bson (>= 3.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
- SharpCompress (>= 0.30.1)
- Snappier (>= 1.0.0)
- System.Buffers (>= 4.5.1)
- ZstdSharp.Port (>= 0.7.3)
-
net6.0
- DnsClient (>= 1.6.1)
- Etherna.MongoDB.Bson (>= 3.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
- SharpCompress (>= 0.30.1)
- Snappier (>= 1.0.0)
- System.Buffers (>= 4.5.1)
- ZstdSharp.Port (>= 0.7.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Etherna.MongoDB.Driver:
Package | Downloads |
---|---|
Etherna.MongoDB.Driver.GridFS
Fork by Etherna of the GridFS Component of the Official MongoDB .NET Driver. |
|
MongODM.Core
ODM framework for MongoDB |
|
Etherna.MongoDB.Driver.Encryption
Libmongocrypt wrapper for the .NET driver. |
|
Etherna.MongoDB.Driver.Authentication.AWS
Fork by Etherna of the official .NET driver for MongoDB. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.1.0 | 140 | 12/5/2024 |
3.0.1 | 184 | 10/25/2024 |
2.29.0 | 171 | 9/19/2024 |
2.28.3 | 340 | 9/9/2024 |
2.28.2 | 159 | 8/27/2024 |
2.28.1 | 152 | 8/27/2024 |
2.28.0 | 116 | 7/27/2024 |
2.27.0 | 154 | 6/28/2024 |
2.26.0 | 163 | 6/26/2024 |
2.25.0 | 165 | 4/14/2024 |
2.24.0 | 189 | 3/21/2024 |
2.23.100 | 243 | 12/16/2023 |
2.23.0 | 180 | 12/12/2023 |
2.22.0 | 271 | 10/28/2023 |
2.21.0 | 238 | 8/14/2023 |
2.20.0 | 243 | 6/22/2023 |
2.19.200 | 208 | 5/25/2023 |
2.19.100 | 360 | 3/27/2023 |
2.19.0 | 477 | 1/28/2023 |
2.18.1 | 439 | 1/24/2023 |
2.18.0 | 711 | 10/22/2022 |
2.17.100 | 776 | 7/30/2022 |
2.17.0 | 654 | 7/19/2022 |
2.16.100 | 728 | 6/24/2022 |
2.16.0 | 3,357 | 6/7/2022 |
2.15.100 | 830 | 5/9/2022 |
2.15.1 | 2,354 | 4/13/2022 |
2.15.0 | 755 | 3/9/2022 |
2.14.103 | 565 | 12/24/2021 |
2.14.102 | 435 | 12/8/2021 |
2.14.101 | 421 | 12/6/2021 |
2.14.100 | 430 | 12/6/2021 |
2.14.1 | 311 | 12/6/2021 |