Top "Mongodb-.net-driver" questions

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

FindAll in MongoDB .NET Driver 2.0

I want to query my MongoDB collection without any filter with MongoDB .NET Driver 2.0 but I didn't find a way. …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
How to create MongoDB MultiKey index on attribute of items in an array .NET Driver

I have a MongoDB collection "foos" containing items which each have an array of "bars". That is, "foo" has the …

c# mongodb linq indexing mongodb-.net-driver
Mongo Vs Raven Evaluation

I was in the process of evaluating nosql databases and finalised on two. RavenDB and MongoDb. Which one is better …

mongodb ravendb mongodb-.net-driver
Dynamic Linq Predicate throws "Unsupported Filter" error with C# MongoDB Driver

I have been trying to pass in a dynamic list of Expressions to a MongoDB C# Driver query using Linq ... …

c# mongodb linq mongo-c-driver mongodb-.net-driver
How do I use SafeMode with the MongoDB C# driver

I found that some methods of the official MongoDB C# driver use SafeMode and return SafeModeResult. What is this SafeMode …

mongodb mongodb-.net-driver
Mongo throwing "Element name 'name' is not valid' exception

I'm updating a simple field. var filterDocument = new BsonDocument { { "name", "alice" } }; var newDocument = new BsonDocument { { "name", "Alice" } }; collection.UpdateOne(filterDocument, …

c# .net mongodb mongodb-.net-driver
Project on multiple fields in C# MongoDB 2.0

How do you project on fields in the new MongoDB C# drivers when the fields are given in the form …

c# .net mongodb mongodb-.net-driver mongodb-csharp-2.0
How do I use the AsQueryable method asynchronously with MongoDb C# Driver 2.1?

The release of version 2.1 of the MongoDb C# Driver has recently reintroduced the method AsQueryable, but I am struggling to …

c# mongodb linq mongodb-.net-driver
What are drawbacks of storing Guid as String in MongoDB?

An application persists Guid field in Mongo and it ends up being stored as BinData: "_id" : new BinData(3, "WBAc3FDBDU+…

mongodb mongodb-.net-driver
creating a compound index in c#

I want to create a compound index where one key should be in ascending, the second key in descending order. …

c# .net mongodb mongodb-.net-driver compound-index