mongocsharpdriver 2.30.0
dotnet add package mongocsharpdriver --version 2.30.0
NuGet\Install-Package mongocsharpdriver -Version 2.30.0
<PackageReference Include="mongocsharpdriver" Version="2.30.0" />
<PackageVersion Include="mongocsharpdriver" Version="2.30.0" />
<PackageReference Include="mongocsharpdriver" />
paket add mongocsharpdriver --version 2.30.0
#r "nuget: mongocsharpdriver, 2.30.0"
#addin nuget:?package=mongocsharpdriver&version=2.30.0
#tool nuget:?package=mongocsharpdriver&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 | Versions 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. |
-
.NETFramework 4.7.2
- MongoDB.Bson (>= 2.30.0)
- MongoDB.Driver (>= 2.30.0)
- MongoDB.Driver.Core (>= 2.30.0)
-
.NETStandard 2.0
- MongoDB.Bson (>= 2.30.0)
- MongoDB.Driver (>= 2.30.0)
- MongoDB.Driver.Core (>= 2.30.0)
-
.NETStandard 2.1
- MongoDB.Bson (>= 2.30.0)
- MongoDB.Driver (>= 2.30.0)
- MongoDB.Driver.Core (>= 2.30.0)
NuGet packages (237)
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 |
|
Bailun.ServiceFabric.Core
百伦dotnet core微服务,基础类库 |
|
Bam.Net.Data.Repositories
Repository pattern providers for the Bam framework |
GitHub repositories (29)
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
|
|
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.
|
|
526077247/ETPro
ET6+YooAsset+HybridCLR
|
|
n2cms/n2cms
N2 CMS, an open source CMS for ASP.NET
|
|
526077247/GenshinGamePlay
参考Genshin的GamePlay框架,包括战斗、解谜、怪物AI、剧情,持续开发中
|
|
daxnet/ByteartRetail
一个演示.NET企业应用开发技术以及领域驱动设计的案例代码,业务背景是一个简单的在线零售系统。
|
|
RobThree/MongoRepository
Repository abstraction layer on top of Official MongoDB C# driver
|
|
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
|
|
martin-nikolov/Telerik-Academy
Course exercises | Telerik Academy 2013/2014 | Martin Nikolov
|
|
garymcleanhall/AdaptiveCode
Code samples to accompany the book Adaptive Code Via C#.
|
Version | Downloads | Last updated | |
---|---|---|---|
2.30.0 | 60,112 | 6 months ago | |
2.29.0 | 18,184 | 7 months ago | |
2.28.0 | 61,702 | 9 months ago | |
2.27.0 | 36,435 | 9 months ago | |
2.26.0 | 24,709 | 10 months ago | |
2.25.0 | 38,843 | 4/12/2024 | |
2.24.0 | 107,568 | 2/21/2024 | |
2.23.2 | 3,674 | 2/20/2024 | |
2.23.1 | 56,367 | 12/15/2023 | |
2.23.0 | 5,170 | 12/11/2023 | |
2.22.0 | 105,823 | 10/9/2023 | |
2.21.0 | 97,413 | 8/10/2023 | |
2.20.0 | 73,054 | 6/21/2023 | |
2.19.2 | 38,407 | 5/25/2023 | |
2.19.1 | 81,037 | 3/27/2023 | |
2.19.0 | 83,079 | 1/27/2023 | |
2.18.0 | 254,532 | 10/14/2022 | |
2.17.1 | 133,962 | 7/30/2022 | |
2.17.0 | 54,869 | 7/18/2022 | |
2.16.1 | 62,052 | 6/21/2022 | |
2.16.0 | 76,373 | 6/7/2022 | |
2.15.1 | 36,298 | 5/4/2022 | |
2.15.0 | 58,585 | 3/9/2022 | |
2.14.1 | 622,925 | 12/3/2021 | |
2.14.0 | 20,167 | 11/24/2021 | |
2.14.0-beta1 | 5,408 | 10/15/2021 | |
2.13.3 | 130,518 | 11/23/2021 | |
2.13.2 | 119,537 | 10/6/2021 | |
2.13.1 | 157,436 | 8/4/2021 | |
2.13.0 | 41,399 | 7/13/2021 | |
2.13.0-beta1 | 2,957 | 3/31/2021 | |
2.12.5 | 1,321 | 11/20/2021 | |
2.12.4 | 70,871 | 6/4/2021 | |
2.12.3 | 61,326 | 5/4/2021 | |
2.12.2 | 59,796 | 4/7/2021 | |
2.12.1 | 11,047 | 3/23/2021 | |
2.12.0 | 48,490 | 3/3/2021 | |
2.12.0-beta1 | 1,318 | 11/6/2020 | |
2.11.6 | 245,087 | 1/20/2021 | |
2.11.5 | 104,302 | 12/2/2020 | |
2.11.4 | 44,763 | 11/4/2020 | |
2.11.3 | 61,470 | 10/15/2020 | |
2.11.2 | 85,505 | 9/10/2020 | |
2.11.1 | 31,140 | 8/25/2020 | |
2.11.0 | 38,719 | 7/30/2020 | |
2.11.0-beta2 | 5,854 | 6/10/2020 | |
2.11.0-beta1 | 1,935 | 4/10/2020 | |
2.10.4 | 647,788 | 5/5/2020 | |
2.10.3 | 114,809 | 4/7/2020 | |
2.10.2 | 1,305,459 | 2/14/2020 | |
2.10.1 | 42,957 | 1/15/2020 | |
2.10.0 | 61,542 | 12/10/2019 | |
2.10.0-beta1 | 2,295 | 10/2/2019 | |
2.9.3 | 150,664 | 11/8/2019 | |
2.9.2 | 88,050 | 9/30/2019 | |
2.9.1 | 58,498 | 8/21/2019 | |
2.9.0 | 12,921 | 8/15/2019 | |
2.9.0-beta2 | 2,975 | 6/17/2019 | |
2.9.0-beta1 | 1,798 | 3/13/2019 | |
2.8.1 | 172,921 | 5/15/2019 | |
2.8.0 | 115,430 | 3/13/2019 | |
2.7.3 | 236,500 | 1/24/2019 | |
2.7.2 | 141,156 | 11/10/2018 | |
2.7.1 | 7,904 | 11/8/2018 | |
2.7.0 | 365,209 | 6/27/2018 | |
2.7.0-beta0001 | 1,887 | 4/22/2018 | |
2.6.1 | 148,943 | 5/17/2018 | |
2.6.0 | 287,656 | 4/24/2018 | |
2.5.1 | 40,076 | 4/19/2018 | |
2.5.0 | 321,022 | 12/12/2017 | |
2.4.4 | 613,975 | 6/8/2017 | |
2.4.3 | 185,570 | 3/9/2017 | |
2.4.2 | 73,835 | 2/2/2017 | |
2.4.1 | 28,229 | 1/4/2017 | |
2.4.0 | 100,726 | 11/29/2016 | |
2.4.0-beta1 | 4,142 | 10/5/2016 | |
2.3.0 | 249,049 | 9/23/2016 | |
2.3.0-rc1 | 51,173 | 8/29/2016 | |
2.3.0-beta1 | 3,050 | 8/3/2016 | |
2.2.4 | 87,358 | 5/18/2016 | |
2.2.3 | 147,270 | 2/2/2016 | |
2.2.2 | 26,750 | 1/15/2016 | |
2.2.1 | 8,961 | 1/8/2016 | |
2.2.0 | 87,470 | 12/7/2015 | |
2.2.0-rc0 | 1,594 | 11/18/2015 | |
2.1.1 | 77,300 | 11/11/2015 | |
2.1.0 | 36,792 | 10/19/2015 | |
2.1.0-rc1 | 3,722 | 10/7/2015 | |
2.1.0-rc0 | 1,984 | 9/17/2015 | |
2.0.2 | 2,804 | 11/11/2015 | |
2.0.1 | 158,709 | 6/8/2015 | |
2.0.0 | 115,885 | 4/2/2015 | |
2.0.0-rc0 | 2,240 | 3/17/2015 | |
2.0.0-beta4 | 1,563 | 3/9/2015 | |
2.0.0-beta3 | 1,641 | 3/5/2015 | |
2.0.0-beta2 | 2,179 | 2/4/2015 | |
2.0.0-beta1 | 2,259 | 1/16/2015 | |
1.11.0 | 320,484 | 12/9/2015 | |
1.11.0-rc0 | 2,376 | 11/18/2015 | |
1.10.1 | 231,597 | 8/12/2015 | |
1.10.0 | 995,873 | 1/29/2015 | |
1.10.0-rc1 | 2,573 | 12/30/2014 | |
1.10.0-rc0 | 3,952 | 11/13/2014 | |
1.9.2 | 1,058,359 | 6/30/2014 | |
1.9.1 | 55,904 | 5/15/2014 | |
1.9.0 | 80,908 | 4/3/2014 | |
1.8.3 | 429,953 | 9/30/2013 | |
1.8.2 | 102,296 | 8/7/2013 | |
1.8.1 | 144,202 | 4/8/2013 | |
1.8.0 | 24,755 | 3/20/2013 | |
1.7.1 | 47,290 | 2/15/2013 | |
1.7.0 | 84,906 | 11/27/2012 | |
1.6.1 | 27,560 | 10/24/2012 | |
1.6.0 | 23,516 | 8/30/2012 | |
1.5.0 | 60,218 | 7/3/2012 | |
1.4.2 | 28,385 | 4/27/2012 | |
1.4.1 | 9,922 | 4/18/2012 | |
1.4.0 | 12,810 | 3/27/2012 | |
1.3.1 | 72,972 | 11/29/2011 | |
1.3.0 | 22,951 | 10/21/2011 | |
1.2.0 | 4,968 | 9/14/2011 | |
1.1.0 | 16,818 | 6/17/2011 | |
1.0.0 | 5,502 | 3/23/2011 | |
0.11.0.4042 | 56,836 | 2/24/2011 |