Top "Mongodb-.net-driver" questions

The official MongoDB .NET Driver provides asynchronous interaction with MongoDB.

Query MongoDB Using 'ObjectId'

I have inserted documents into MongoDB without an id. And I want to retrieve them by searching through their MongoDB …

c# .net mongodb mongodb-.net-driver
MongoDB C# Driver 2.0 - Update document

I'm currently upgrading my code to MongoDB C# driver 2.0 and I'm having issues upgrading the code to update documents. using …

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDb c# driver find item in array by field value

i found the way to check is the value contains in simple array : var filter = Builders<Post>.Filter.…

c# mongodb mongodb-.net-driver mongodb-csharp-2.0
How do you update multiple field using Update.Set in MongoDB using official c# driver?

The following code will allow me to update the Email where FirstName = "john" and LastName = "Doe". How do you update …

c# .net mongodb mongodb-.net-driver
Convert string into MongoDB BsonDocument

I have a long string in JSON format, and I want to convert it into a BSONDocument for insertion into …

c# mongodb mongodb-.net-driver
How to convert string into ObjectId

I am getting data from MongoDB and binding to a WPF datagrid. My code selects multiple rows, retrieves IDs and …

mongodb mongodb-.net-driver
How to create indexes in MongoDB via .NET

I've programmatically created a new document collection using the MongoDB C# driver. At this point I want to create and …

c# .net mongodb indexing mongodb-.net-driver
How to do findAll in the new mongo C# driver and make it synchronous

I was using official C# driver to do a FindAll and upgraded to the new driver 2.0. FindAll is obsolete and …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
MongoDB C# Driver - Ignore fields on binding

When using a FindOne() using MongoDB and C#, is there a way to ignore fields not found in the object? …

c# .net mongodb mongodb-query mongodb-.net-driver
MongoDB and C#: Case insensitive search

I am using MongoDB and the C# driver for MongoDB. I recently discovered that all queries in MongoDB are case-sensitive. …

c# .net mongodb mongodb-.net-driver case-insensitive