public GridFS(Mongo mongo, string bucketName) { this.mongo = mongo; this.bucketName = bucketName; chunks = this.mongo[this.bucketName][".chunks"]; files = this.mongo[this.bucketName][".files"]; }
public GridFS(Mongo mongo) { this.mongo = mongo; this.bucketName = DEFAULT_ROOT; chunks = this.mongo[this.bucketName][".chunks"]; files = this.mongo[this.bucketName][".files"]; }
public GridFS(Mongo mongo, Database db, string bucketName) : this() { this.mongo = mongo; this.bucketName = bucketName; chunks = db[this.bucketName + ".chunks"]; files = db[this.bucketName + ".files"]; this.mongo.SetCurrentDB(db); }
public void Init() { db.Connect(); tests = db["tests"]; mrcol = (Collection)tests["mr"]; CleanDB(); SetupCollection(); }
public Boolean DropCollection(Collection col) { return this.DropCollection(col.Name); }
public IMongoCollection GetCollection(String name) { IMongoCollection col = new Collection(name, this.connection, this.Name); return col; }
public Database(Connection conn, String name) { this.connection = conn; this.name = name; this.command = this["$cmd"]; }
public CollectionTests() { var mongoDatabaseMock = new Mocks.MongoDatabase("DATABASENAME"); Collection = new Collection("COLLECTIONNAME", mongoDatabaseMock); }
public Boolean DropCollection(Collection col) { throw new NotImplementedException(); }