递归
2017-01-05 00:55 lijianhua 阅读(221) 评论(0) 编辑 收藏 举报public static List<RelateShip> Gets(string version) { List<RelateShip> relateShipList = new List<RelateShip>(); if(!string.IsNullOrEmpty(version)) { relateShipList =entity.GetRelatship(); foreach(RelateShip tmp in relateShipList) { Gets(tmp.BVersion) } } return relateShipList; }