public MongoInterfaceClass(IMongoDatabase db, IMongoCollection <T> collectionDB, IConnectMongoClient imongoCon, IMongo_List imongoList) { this.imongoList = imongoList; this.imongoCon = imongoCon; this.db = db; this.collectionDB = collectionDB; }
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); }