Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mongodb/mongo-csharp-driver
The Official C# .NET Driver for MongoDB
https://github.com/mongodb/mongo-csharp-driver
csharp csharp-library dotnet-framework mongodb nosql
Last synced: about 1 month ago
JSON representation
The Official C# .NET Driver for MongoDB
- Host: GitHub
- URL: https://github.com/mongodb/mongo-csharp-driver
- Owner: mongodb
- License: apache-2.0
- Created: 2010-06-02T18:22:21.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T22:41:23.000Z (about 1 month ago)
- Last Synced: 2024-04-29T23:31:55.720Z (about 1 month ago)
- Topics: csharp, csharp-library, dotnet-framework, mongodb, nosql
- Language: C#
- Homepage: https://www.mongodb.com/docs/drivers/csharp/current/
- Size: 784 MB
- Stars: 3,098
- Watchers: 241
- Forks: 1,233
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Lists
- awesome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-mongodb-cn - mongo-csharp-driver - 官方 C#驱动程序 (库 / C#/.NET)
- awsome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- Awesome-Nuget-Packages - **MongoDB.Driver**
- awesome-stars - mongo-csharp-driver
- awesome-mongodb - mongo-csharp-driver - Official C# driver (Libraries / C#/.NET ###)
- awesome-csharp - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dot-dev - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet-cn - 官网
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# Driver (Database Drivers)
- awesome-dotnet-core-master - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# Driver (Database Drivers)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- my-awesome - mongo-csharp-driver - .NET Driver for MongoDB (C#)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-mongodb - mongo-csharp-driver - Official C# driver (Libraries / C#/.NET ###)
- awesome-dotnet-core - MongoDB.Driver - MongoDB的.NET驱动程序。 (框架, 库和工具 / 数据库驱动程序)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet-cn - MongoDB - MongoDB官方C#驱动。 (数据库驱动)
- awesome-dotnet - MongoDB - Official MongoDB C# driver (Database Drivers)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. `Stable version only works for 4.5.x, but beta available for .NET Core 1.0` (Frameworks, Libraries and Tools / Database Drivers)
- awesome-mongodb - mongo-csharp-driver - Official C# driver (Libraries / C#/.NET ###)
- awesome-dotnet-core - MongoDB.Driver - .NET Driver for MongoDB. (Frameworks, Libraries and Tools / Database Drivers)
- awesome-dotnet - MongoDB - Official MongoDB C# Driver (Database Drivers)
- awesome-csharp - MongoDB C# Driver - .NET Driver for MongoDB. (Cheat sheets / Libraries)
- system-architecture-awesome - MongoDB.Driver - .NET Driver for MongoDB. (Database Drivers)
- awesome-list - MongoDB C# Driver - The .NET driver for MongoDB (Data Management & Processing / Database & Cloud Management)
- awesome-dotnet-cn - 官网
README
MongoDB C# Driver
=================You can get the latest stable release from the [official Nuget.org feed](https://www.nuget.org/packages/MongoDB.Driver) or from our [github releases page](https://github.com/mongodb/mongo-csharp-driver/releases).
Getting Started
---------------### Untyped Documents
```C#
using MongoDB.Bson;
using MongoDB.Driver;
``````C#
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection("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
```C#
using MongoDB.Bson;
using MongoDB.Driver;
``````C#
public class Person
{
public ObjectId Id { get; set; }
public string Name { get; set; }
}
``````C#
var client = new MongoClient("mongodb://localhost:27017");
var database = client.GetDatabase("foo");
var collection = database.GetCollection("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
-------------
* [MongoDB](https://www.mongodb.com/docs)
* [Documentation](https://www.mongodb.com/docs/drivers/csharp/current/)Questions/Bug Reports
---------------------
* [MongoDB Community Forum](https://www.mongodb.com/community/forums/tags/c/data/drivers-odms/7/dot-net)
* [Jira](https://jira.mongodb.org/browse/CSHARP)If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the [instructions here](https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report).
Contributing
------------Please see our [guidelines](CONTRIBUTING.md) for contributing to the driver.
### Maintainers:
* Boris Dogadov [email protected]
* James Kovacs [email protected]
* Oleksandr Poliakov [email protected]
* Robert Stam [email protected]### Contributors:
* Alexander Aramov https://github.com/alex687
* Bar Arnon https://github.com/I3arnon
* Wan Bachtiar https://github.com/sindbach
* Mark Benvenuto https://github.com/markbenvenuto
* Brian Buvinghausen https://github.com/buvinghausen
* Bit Diffusion Limited [email protected]
* Jimmy Bogard https://github.com/jbogard
* Ross Buggins https://github.com/rbugginsvia
* Nima Boscarino https://github.com/NimaBoscarino
* Oscar Bralo https://github.com/Oscarbralo
* Alex Brown https://github.com/alexjamesbrown
* Ethan Celletti https://github.com/Gekctek
* Chris Cho https://github.com/ccho-mongodb
* Adam Avery Cole https://github.com/adamaverycole
* Nate Contino https://github.com/nathan-contino-mongo
* Alex Dawes https://github.com/alexdawes
* Justin Dearing [email protected]
* Dan DeBilt [email protected]
* Teun Duynstee [email protected]
* Einar Egilsson https://github.com/einaregilsson
* Ken Egozi [email protected]
* Alexander Endris https://github.com/AlexEndris
* Daniel Goldman [email protected]
* David Golub https://github.com/dgolub
* Simon Green [email protected]
* Bouke Haarsma https://github.com/Bouke
* James Hadwen [email protected]
* Nuri Halperin https://github.com/nurih
* Daniel Hegener [email protected]
* Nikola Irinchev https://github.com/nirinchev
* Jacob Jewell [email protected]
* Vincent Kam https://github.com/vincentkam
* Danny Kendrick https://github.com/dkendrick
* Ruslan Khasanbaev https://github.com/flaksirus
* Konstantin Khitrykh https://github.com/KonH
* Brian Knight [email protected]
* John Knoop https://github.com/johnknoop
* Andrey Kondratyev https://github.com/byTimo
* Anatoly Koperin https://github.com/ExM
* Nik Kolev [email protected]
* Oleg Kosmakov https://github.com/kosmakoff
* Maksim Krautsou https://github.com/MaKCbIMKo
* Richard Kreuter [email protected]
* Daniel Lee https://github.com/dlee148
* Ming Yau Lee https://github.com/mingyaulee
* Kevin Lewis [email protected]
* Dow Liu [email protected]
* Chuck Lu https://github.com/chucklu
* Alex Lyman [email protected]
* Tomasz Masternak https://github.com/tmasternak
* Mikalai Mazurenka [email protected]
* John Murphy https://github.com/jsmurphy
* Alexander Nagy [email protected]
* Sridhar Nanjundeswaran https://github.com/sridharn
* Nathan https://github.com/terakilobyte
* Adelin Owona https://github.com/adelinowona
* Rachelle Palmer https://github.com/techbelle
* Rich Quackenbush [email protected]
* Carl Reinke https://github.com/mindless2112
* Rodrigo Reis https://github.com/rodrigoreis
* Gian Maria Ricci https://github.com/alkampfergit
* Andrew Rondeau [email protected]
* Ed Rooth [email protected]
* Katie Sadoff https://github.com/ksadoff
* Manas Sahu https://github.com/Zangetsu112
* Sam558 https://github.com/Sam558
* Vladimir Setyaev [email protected]
* Sergey Shushlyapin https://github.com/sergeyshushlyapin
* Alexey Skalozub [email protected]
* Kevin Smith https://github.com/kevbite
* Pete Smith [email protected]
* Matteo Spreafico https://github.com/MatteoSp
* staywellandy https://github.com/staywellandy
* Vyacheslav Stroy https://github.com/kreig
* Jake Sta. Teresa https://github.com/JakeStaTeresa
* Testo [email protected]
* TimTim https://github.com/wegylexy
* Craig Wilson https://github.com/craiggwilson
* Zhmayev Yaroslav https://github.com/salaros
* Aristarkh Zagorodnikov https://github.com/onyxmaster
* Samir Boulema https://github.com/sboulema
* Dmitry Lukyanov https://github.com/DmitryLukyanov
* Andrea Balducci https://github.com/andreabalducci
* Sergei Lipin https://github.com/prchaozIf you have contributed and we have neglected to add you to this list please contact one of the maintainers to be added to the list (with apologies).