Пример #1
0
 public MongoCursorProxy(MongoCursor mongoMongoCursor)
 {
     _mongoMongoCursor = mongoMongoCursor;
     Collection        = new MongoCollectionProxy(_mongoMongoCursor.Collection);
     Database          = new MongoDatabaseProxy(_mongoMongoCursor.Database);
     Server            = new MongoServerProxy(_mongoMongoCursor.Server);
 }
Пример #2
0
        public MongoCollectionProxy(MongoCollection collection)
        {
            _collection = collection;

            Database = new MongoDatabaseProxy(_collection.Database);
        }