예제 #1
0
        public MongoProfileContext(uint id)
        {
            var dbNode = MongoCache.GetTreeNode(id);

            Database = MongoCache.GetMongoObject(id) as MongoDatabaseModel;
            var serverNode = MongoCache.GetTreeNode(dbNode.PID);

            Server = MongoCache.GetMongoObject(serverNode.ID) as MongoServerModel;
        }
예제 #2
0
        public MongoCollectionInfo(uint id)
        {
            var tbNode = MongoCache.GetTreeNode(id);

            Table = MongoCache.GetMongoObject(id) as MongoCollectionModel;
            var dbNode = MongoCache.GetTreeNode(tbNode.PID);

            Database = MongoCache.GetMongoObject(dbNode.ID) as MongoDatabaseModel;
            var serverNode = MongoCache.GetTreeNode(dbNode.PID);

            Server = MongoCache.GetMongoObject(serverNode.ID) as MongoServerModel;
        }
예제 #3
0
        public MongoIndexContext(uint id)
        {
            ID = id;
            var idxNode = MongoCache.GetTreeNode(ID);

            var tbNode = MongoCache.GetTreeNode(idxNode.PID);

            Table = MongoCache.GetMongoObject(tbNode.ID) as MongoCollectionModel;
            var dbNode = MongoCache.GetTreeNode(tbNode.PID);

            Database = MongoCache.GetMongoObject(dbNode.ID) as MongoDatabaseModel;
            var serverNode = MongoCache.GetTreeNode(dbNode.PID);

            Server = MongoCache.GetMongoObject(serverNode.ID) as MongoServerModel;
        }
        public MongoReplicationContext(uint id)
        {
            var serverNode = MongoCache.GetTreeNode(id);

            Server = MongoCache.GetMongoObject(serverNode.ID) as MongoServerModel;
        }