Наследование: IMongoCollection
Пример #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"];
 }
Пример #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"];
 }
Пример #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);
 }
Пример #4
0
        public void Init()
        {
            db.Connect();
            tests = db["tests"];
            mrcol = (Collection)tests["mr"];

            CleanDB();
            SetupCollection();
        }
Пример #5
0
 public Boolean DropCollection(Collection col)
 {
     return this.DropCollection(col.Name);
 }
Пример #6
0
 public IMongoCollection GetCollection(String name)
 {
     IMongoCollection col = new Collection(name, this.connection, this.Name);
     return col;
 }
Пример #7
0
 public Database(Connection conn, String name)
 {
     this.connection = conn;
     this.name = name;
     this.command = this["$cmd"];
 }
Пример #8
0
        public CollectionTests()
        {
            var mongoDatabaseMock = new Mocks.MongoDatabase("DATABASENAME");

            Collection = new Collection("COLLECTIONNAME", mongoDatabaseMock);
        }
Пример #9
0
 public Boolean DropCollection(Collection col)
 {
     throw new NotImplementedException();
 }