VOOZH about

URL: https://www.nuget.org/packages/mongocsharpdriver/

⇱ NuGet Gallery | mongocsharpdriver 2.30.0




👁 Image
mongocsharpdriver 2.30.0

Suggested Alternatives

MongoDB.Driver

dotnet add package mongocsharpdriver --version 2.30.0
 
 
NuGet\Install-Package mongocsharpdriver -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="mongocsharpdriver" Version="2.30.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="mongocsharpdriver" Version="2.30.0" />
 
Directory.Packages.props
<PackageReference Include="mongocsharpdriver" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add mongocsharpdriver --version 2.30.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: mongocsharpdriver, 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.
#:package mongocsharpdriver@2.30.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=mongocsharpdriver&version=2.30.0
 
Install as a Cake Addin
#tool nuget:?package=mongocsharpdriver&version=2.30.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

NuGet packages (234)

Showing the top 5 NuGet packages that depend on mongocsharpdriver:

Package Downloads
Cqrs.Mongo

Use MongoDB as the read store and data store in CQRS.NET

MongoRepository

This easy to use library implements the repository pattern on top of Official MongoDB C# driver.

d60.Cirqus.MongoDb

MongoDB stuff for d60 event sourcing + cqrs kit

MongoDBQueue.Legacy

Light abstraction on top of MongoDB to provide basic message queue functionality (with legacy MongoDB driver).

Bailun.ServiceFabric.Core

百伦dotnet core微服务,基础类库

GitHub repositories (31)

Showing the top 20 popular GitHub repositories that depend on mongocsharpdriver:

Repository Stars
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
wqaetly/NKGMobaBasedOnET
基于ET框架致敬LOL的Moba游戏,提供完整的状态帧同步框架,包含预测回滚逻辑,基于双端行为树的技能系统,更多精彩等你发现!Based on the ET framework, we pay tribute to LOL's Moba game, providing a complete state frame synchronization framework, including predictive rollback logic, a skill system based on double-ended behavior trees, and more exciting things waiting for you to discover!
brockallen/BrockAllen.MembershipReboot
MembershipReboot is a user identity management and authentication library.
ElderJames/shriek-fx
An easy-to-use rapid development framework developed on the basis of.NET Core 2.0, following the constraints of domain Driven Design (DDD) specifications, combined with the CQRS architecture to provide the infrastructure for event-driven, event backtracking, responsiveness, and more. Let developers enjoy the true meaning of object-oriented design patterns brought by the aesthetic.
imazen/resizer
The official repository for ImageResizer
magicdict/MongoCola
A MongoDB Administration Tool
526077247/GenshinGamePlay
参考Genshin的GamePlay框架,包括战斗、解谜、怪物AI、剧情,持续开发中
526077247/ETPro
ET6+YooAsset+HybridCLR
daxnet/Apworks
Apworks is a flexible, scalable, configurable and efficient .NET based application development framework that helps software developers to easily build enterprise applications by applying either Classic Layering or Command-Query Responsibility Segregation (CQRS) architectural patterns.
n2cms/n2cms
N2 CMS, an open source CMS for ASP.NET
RobThree/MongoRepository
Repository abstraction layer on top of Official MongoDB C# driver
daxnet/ByteartRetail
一个演示.NET企业应用开发技术以及领域驱动设计的案例代码,业务背景是一个简单的在线零售系统。
roadkillwiki/roadkill
A modern .NET Wiki
jrusbatch/compilify
A web-based compiler for C# and VB.NET, powered by the Roslyn Project.
ChrisFulstow/NBlog
A lightweight blog engine built with ASP.NET MVC 3, Razor, jQuery and C#.
RickStrahl/WestwindToolkit
A utility toolkit for .NET development from Core to Web
socioboard/socioboard-core
This is an old repo, for latest maintained version go here - https://github.com/socioboard/Socioboard-Core-3.0
mookid8000/Cirqus
:x: d60 event sourcing + CQRS framework
AzureCosmosDB/data-migration-desktop-tool
martin-nikolov/Telerik-Academy
Course exercises | Telerik Academy 2013/2014 | Martin Nikolov
Version Downloads Last Updated
2.30.0 516,281 10/16/2024 2.30.0 is deprecated because it is no longer maintained.
2.29.0 46,256 9/18/2024
2.28.0 201,665 7/23/2024
2.27.0 95,439 6/28/2024
2.26.0 51,906 6/12/2024
2.25.0 53,641 4/12/2024
2.24.0 161,079 2/21/2024
2.23.2 10,648 2/20/2024
2.23.1 78,867 12/15/2023
2.23.0 8,520 12/11/2023
2.22.0 152,571 10/9/2023
2.21.0 107,416 8/10/2023
2.20.0 115,965 6/21/2023
2.19.2 45,124 5/25/2023
2.19.1 100,038 3/27/2023
2.19.0 117,553 1/27/2023
2.18.0 316,451 10/14/2022
2.17.1 173,966 7/30/2022
2.17.0 58,427 7/18/2022
2.16.1 70,021 6/21/2022
Loading failed