标签:int 查询 repo return turn oid parent builder factor
/// <summary> /// 递归查询 /// </summary> /// <param name="groupID"></param> /// <param name="idList"></param> protected static void FindChildrenID(int groupID, StringBuilder idList) {
// 这里是找孩子节点 var gLst = RepositoryFactory.Group.FindList(p => p.ParentID == groupID, "ID", false).ToList(); foreach (var item in gLst) { //判断子节点是否存在,有则继续 if (RepositoryFactory.Group.Find(p => p.ParentID == item.ID) != null) return FindChildrenID(item.ID, idList); idList.Append("|" + item.ID.ToString()); } }
标签:int 查询 repo return turn oid parent builder factor
原文地址:http://www.cnblogs.com/louby/p/6441560.html