Top "Mongodb-.net-driver" questions

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

Using the mongo C# driver, how to serialize an array of custom object in order to store it?

I have a product document that contains an array of documents. For example { id: 1, name: "J-E-L-L-O", store:[{id: 1, name: "Store …

c# mongodb mongodb-.net-driver
How to improve MongoDB insert performance

The result: If you are operating on a dataset that is fault tolerant, or doing a one time process you …

c# performance mongodb mongodb-.net-driver
Is there mongodb C# driver support System.Dynamic.DynamicObject in .NET 4?

Im working on a project that use .NET Razor and mongodb. I would like to do something like this: @{ var …

c#-4.0 mongodb mongodb-.net-driver dynamicobject
System.FormatException' occurred in MongoDB.Bson.dll - XXX is not a valid 24 digit hex string

I have created a C# class like this: public class Employee { [BsonRepresentation(BsonType.ObjectId)] public string Name { get; set; } public …

c# mongodb mongodb-.net-driver
Unit of work in mongodb and C#

I know that MongoDB is not supposed to support unit of work, etc. But I think it would be nice …

c# mongodb mongodb-.net-driver
MongoDB InsertMany vs BulkWrite

I am using MongoDB for keeping log data. And my goal is zero dropped log record. Now i am using "…

c# mongodb mongodb-.net-driver
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
C# mongodb driver 2.0 - How to upsert in a bulk operation?

I migrated from 1.9 to 2.2 and reading the documentation I was surprised to discover that is not possible to upsert during …

c# mongodb batch-processing mongodb-.net-driver bulk
MongoDB best practice for referencing

I'm wondering what the best practice for modelling by using references would be given situation under. I'm using MongoRepository library. …

c# asp.net-mvc mongodb mongodb-.net-driver
C# mongo queries with json strings

This seems so basic that I'm sure I've just overlooked a class or a method somewhere, but for the life …

c# .net json mongodb mongodb-.net-driver