Пример #1
0
 public MongoInterfaceClass(IMongoDatabase db, IMongoCollection <T> collectionDB, IConnectMongoClient imongoCon, IMongo_List imongoList)
 {
     this.imongoList   = imongoList;
     this.imongoCon    = imongoCon;
     this.db           = db;
     this.collectionDB = collectionDB;
 }
Пример #2
0
 public MongoInterfaceClass()
 {
     imongoList   = new MongoDB_List();
     imongoCon    = new ConnectMongoClient();
     db           = imongoCon.setConnocetion().GetDatabase(imongoList.getSpecificParamters("test_mongo").base_name);
     collectionDB = db.GetCollection <T>(imongoList.getSpecificParamters("test_mongo").collection_name);
 }