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