Questions tagged as 'mongodb-csharp'

2
answers

Expando Object for Bson

How can I build a parse Expanding Object to Bson? (Vs 2013 - C # - MongoDB)     
asked by 29.04.2015 / 16:04
1
answer

Correct way to make one-to-many relationship using C # and MongoDB

I have two entities, Sistema and Comentario where a system can have several comments: public class Sistema { public ObjectId Id { get; set; } [BsonElement("SistemaId")] public int SistemaId { get; s...
asked by 05.07.2016 / 14:40
1
answer

Convert an XML file into BSON

I have an Xml Complex that contains "children" nodes and I need to convert it to BSON . I am using VS 2013 (C #).     
asked by 28.04.2015 / 21:07
1
answer

How to filter an array inside a collection in MONGODB - C #

I have the collection PESSOA with a list of Languages as below: { "_id" : ObjectId("576be476ab76191bec2ff38c"), "Nome" : "Nome um", "Idiomas" : [ {...
asked by 23.06.2016 / 17:40
1
answer

Dependency Injection MVC C # - MongoDB 2.0

I'm starting a project using MVC 4 with Driver 2.0 MongoDB . I'm used to using Ninject with EF6 and would like to know if there is something like MongoDB or some example architecture pattern to implement it....
asked by 13.01.2016 / 18:37
1
answer

MongoDb Driver Fields Exclude

My problem is this, I have an object: public class Obj(){ prop int id {get; set;} prop Client client {get; set;} } public class Client(){ prop int id {get; set;} prop Group group {get; set;} } public class Group(){ prop int...
asked by 20.02.2017 / 16:08
1
answer

Error writing to MongoDB using Parallelism in C #

I have a collection in Mongo that has subdocuments, so I read xml files and write them to MongoDB. Each xml file is a document in Mongo. My classes public class Cabecalho { public Cabecalho() { Operacoes = new List<Operac...
asked by 04.09.2014 / 13:38
0
answers

Aggregate in C # does not return anything?

I made a direct query on the console that returned what I expected, the query on the mongo is like this. db.AtividadeResultMongo.aggregate([{$unwind: "$LsVariaveisProcesso"}, {$match: { IdAtividade : 913, IdEstadoInstanciaA...
asked by 01.09.2017 / 23:26
0
answers

Cezar Cipher in C # - (Error Could not convert String to Char) [closed]

Cezar Cipher in C # - (Error Could not Convert String to Char) Hello, I have a college exercise that you type a word and she plays the translation according to the posted shift. If you type AB and the offset is 3 then the translation is A...
asked by 08.10.2014 / 04:59
2
answers

How can I create a DataGridView with Mongodb?

I want to display the DB data in a table, but so far I have been able to do it with a ListView . How can I do this but using a DataGridView ? using System; using System.Collections.Generic; using System.ComponentModel; using System...
asked by 05.12.2014 / 04:56