Inheritance: IMongoCollection
Example #1
0
 public GridFS(Mongo mongo, string bucketName)
 {
     this.mongo = mongo;
     this.bucketName = bucketName;
     chunks = this.mongo[this.bucketName][".chunks"];
     files = this.mongo[this.bucketName][".files"];
 }
Example #2
0
 public GridFS(Mongo mongo)
 {
     this.mongo = mongo;
     this.bucketName = DEFAULT_ROOT;
     chunks = this.mongo[this.bucketName][".chunks"];
     files = this.mongo[this.bucketName][".files"];
 }
Example #3
0
 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();
        }
Example #5
0
 public Boolean DropCollection(Collection col)
 {
     return this.DropCollection(col.Name);
 }
Example #6
0
 public IMongoCollection GetCollection(String name)
 {
     IMongoCollection col = new Collection(name, this.connection, this.Name);
     return col;
 }
Example #7
0
 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);
        }
Example #9
0
 public Boolean DropCollection(Collection col)
 {
     throw new NotImplementedException();
 }