Top "Mongodb-csharp-2.0" questions

Version 2.0 of the C# driver for MongoDB.

Update all properties of object in MongoDb

I'm using the MongoDB .Net driver in my project. I want to update all of the properties of my object …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
Insert new document using InsertOneAsync (.NET Driver 2.0)

In the older .Net API version : MongoClient client = new MongoClient(); var server = client.GetServer(); var db = server.GetDatabase("foo"); var …

c# asp.net mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDB c# driver using upsert with updateMany

In MongoDB c# driver (2.0+) can we do an upsert when doing and updateManyAsync? This example helps with UpdateOne, but i …

c# mongodb mongodb-csharp-2.0
Unwind then Group aggregation in MongoDB C#

I'm having some trouble with the new C# 2.0 MongoDB driver and the aggregation pipeline. Basically, I'm trying to return the …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
Understanding the changes in MongoDB new C# driver (Async and Await)

The new C# driver is totally Async and in my understanding twists a little bit the old design patterns such …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
Paging MongoDB query with C# drivers

I am using version 2.2 of MongoDB drivers for C#. I want to paginate a query : the response to the query …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
BsonSerializationException when serializing a Dictionary<DateTime,T> to BSON

I've recently moved to the new MongoDB C# driver v2.0 from the deprecated v1.9. Now, when I serialize a class …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDB FilterDefinition & IQueryable in C#

I have the following spatial FilterDefinition: var filter = Builders<MyDocument> .Filter .Near(x => x.Point, point, 1000); Is …

.net mongodb mongodb-query mongodb-.net-driver mongodb-csharp-2.0
How to do an upsert with MongoDB 2.0?

The interface of MongoDB has completely changed from the previous one. Here you can see the official documentation with some …

c# mongodb mongodb-csharp-2.0
Initialize MongoClient with MongoClientSettings in C#

I'm trying to initialize the MongoClient from the Mongo 2.0 driver as follows: MongoClientSettings settings = new MongoClientSettings(); settings.WaitQueueSize = int.MaxValue; …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0