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)); }
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)); }