Ejemplo n.º 1
0
 public ViewModel()
 {
     MongoDB.Database.Writer <Model> mongoDatabaseWriter = new MongoDB.Database.Writer <Model>(MONGODB_CONN_STRING, MONGODB_DATABASE_NAME_STRING);
     _mongoCollectionWriter = new MongoDB.Collection.Writer <Model>(mongoDatabaseWriter, MONGODB_COLLECTION_NAME_STRING);
 }
Ejemplo n.º 2
0
 public ViewModel()
 {
     MongoDB.Database.Writer<Model> mongoDatabaseWriter = new MongoDB.Database.Writer<Model>(MONGODB_CONN_STRING, MONGODB_DATABASE_NAME_STRING);
     _mongoCollectionWriter = new MongoDB.Collection.Writer<Model>(mongoDatabaseWriter, MONGODB_COLLECTION_NAME_STRING);
 }