tagged [driver]
MongoDB how to check for existence
MongoDB how to check for existence I would like to know how can I check the existence of an object with mongoDB and C#. I've found a way to do it but I had to use Linq thanks to Any() method, but I'd ...
- Modified
- 28 Jul at 22:1
Mongodb -- include or exclude certain elements with c# driver
Mongodb -- include or exclude certain elements with c# driver How would I translate this mongo query to a Query.EQ statement in C#? In other words, I don't want everything returned to C# -- Just the o...
- Modified
- 23 Dec at 10:47
MongoDB and C#: Case insensitive search
MongoDB and C#: Case insensitive search I am using [MongoDB](http://www.mongodb.org/) and the [C# driver for MongoDB](http://www.mongodb.org/display/DOCS/CSharp+Language+Center#CSharpLanguageCenter-C%...
- Modified
- 10 Sep at 09:36
How to get the Mongo database specified in connection string in C#
How to get the Mongo database specified in connection string in C# I would like to connect to the database specified in the connection string, without specifying it again in `GetDatabase`. For example...
- Modified
- 26 Aug at 08:54
MongoDB C# Driver multiple field query
MongoDB C# Driver multiple field query Using the MongoDB C# driver How can I include more than one field in the query (Im using vb.net) I know how to do (for `name1=value1`) How can I modify this quer...
- Modified
- 23 Sep at 11:20
MongoDB C# driver 2.0 InsertManyAsync vs BulkWriteAsync
MongoDB C# driver 2.0 InsertManyAsync vs BulkWriteAsync I have to insert many documents in a MongoDB collection, using the new C# 2.0 driver. Is using either `collection.InsertManyAsync(...)` or `coll...
- Modified
- 12 May at 21:44
mongodb obtaining collection names c#
mongodb obtaining collection names c# I'm trying to obtain a list of all databases and the associated list of collections for a connection using Mongo C# Driver. I'm able to obtain the list of databas...
- Modified
- 16 Nov at 21:47
Query MongoDB Using 'ObjectId'
Query MongoDB Using 'ObjectId' I have inserted `document`s into MongoDB without an `id`. And I want to retrieve them by searching through their [MongoDB ObjectId](https://docs.mongodb.org/manual/refer...
- Modified
- 18 Mar at 14:37
MongoDB C# official driver : Mapping objects to short names to limit space
MongoDB C# official driver : Mapping objects to short names to limit space I searching a way to map the Bson objects defined using readable names ("category") to shorts names ("ct") and limit the spac...
- Modified
- 4 Feb at 14:33
install/uninstall an .inf driver programmatically using C# .net
install/uninstall an .inf driver programmatically using C# .net I am making an application using c#.net. It contains a filesystem minifilter driver also. I want to install and uninstall this driver pr...
- Modified
- 9 Jan at 05:56
FindAll in MongoDB .NET Driver 2.0
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. I have the following workaround but it looks weird :D ...
- Modified
- 14 Jun at 12:35
C# MongoDB.Driver GetServer is Gone, What Now?
C# MongoDB.Driver GetServer is Gone, What Now? From the mongoDB.Driver docs ([http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-csharp-driver/](http://docs.mongodb.org/ecosystem/tutorial...
- Modified
- 20 Jun at 09:12
Is there mongodb C# driver support System.Dynamic.DynamicObject in .NET 4?
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: However, the current mongodb...
- Modified
- 19 Apr at 06:3
Mongo C# ignore property
Mongo C# ignore property I'm using v0.9 of the official MongoDB driver and i'm trying to read in a collection. I have a field in the database that I don't want to read into my object but I get the fol...
How to use $push update modifier in MongoDB and C#, when updating an array in a document
How to use $push update modifier in MongoDB and C#, when updating an array in a document I've run the following code in mongo shell: and now I've something like this in my MongoDB collection: As you c...
- Modified
- 13 Aug at 08:54
MongoDB .Net driver 2.0 Pull (remove element)
MongoDB .Net driver 2.0 Pull (remove element) Can you help me to run correctly "Pull (remove)" with 2.0 driver. I have a collection like this and I want to remove first follower named as fethiye by fo...
- Modified
- 9 May at 15:46
How to create a new database in MongoDB using the c# driver
How to create a new database in MongoDB using the c# driver I have read through the mongodb documentation and cannot seem to find out how to create a new database. For example, in the documentation it...
- Modified
- 28 Apr at 22:23
How is an IAsyncCursor used for iteration with the mongodb c# driver?
How is an IAsyncCursor used for iteration with the mongodb c# driver? I'm trying to get a list of all the databases in my server and ultimately print them out (i.e. use their names as `string`s). With...
- Modified
- 17 Apr at 06:42
Understanding the changes in MongoDB new C# driver (Async and Await)
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 as DAL in n-tier archit...
- Modified
- 26 Aug at 04:55
Translate FilterDefinition<TDocument> to regular json mongo query that i can run in a mongo shell
Translate FilterDefinition to regular json mongo query that i can run in a mongo shell I have many complex queries that I sometimes wish to check directly against Mongo for debugging \ explaining() pu...
- Modified
- 11 Sep at 08:29
Assembler file as input for a driver build with the WDK tools
Assembler file as input for a driver build with the WDK tools How to get an assembler file to be compiled and linked into a driver build. To clarify a bit The SOURCES file : The problem occurs with th...
$project or $group does not support <document>
$project or $group does not support I'm trying to run aggregate with projection but i get `NotSupportedException: $project or $group does not support `. I am running version 2.4.4 of driver with mongo...
- Modified
- 28 Dec at 10:1
How to do findAll in the new mongo C# driver and make it synchronous
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 is replaced with Fin...
- Modified
- 17 Jun at 14:24
MongoDb c# driver find item in array by field value
MongoDb c# driver find item in array by field value i found the way to check is the value contains in simple array : But how to find a complex item with many fields by a concrete field ? I found the w...
- Modified
- 7 Aug at 15:7
Mongodb auth with servicestack throws missing method exception
Mongodb auth with servicestack throws missing method exception I've just configured ServiceStack to use Mongodb for authentication like this locally ``` public override void Configure(Container contai...
- Modified
- 31 Dec at 13:11