Exemple #1
0
        public List <ConfigNode> GetConfigNodes(Expression <Func <ConfigEntity, bool> > Predicate,
                                                int BeginNodeDeep = 0,
                                                int EndNodeDeep   = 0)
        {
            var configEntitys = DB.GetList(Predicate);

            var pathNodes = convertNode(configEntitys, "", BeginNodeDeep, EndNodeDeep);

            return(PathTreeConvertor.To(pathNodes, true));
        }
Exemple #2
0
        public List <ConfigNode> GetConfigNodes(Expression <Func <ConfigEntity, bool> > Predicate,
                                                string IgnorePart = "",
                                                bool WithParent   = true,
                                                int NodeDeep      = 0)
        {
            var configEntitys = DB.GetList(Predicate);

            var pathNodes = convertNode(configEntitys, IgnorePart, 0, NodeDeep);

            return(PathTreeConvertor.To(pathNodes, WithParent));
        }