public static Dictionary<int, string> GetNameByLevel2(string pids)
{
Dictionary<int, string> ret = new Dictionary<int, string>();
string[] ary = pids.Split(',');
int[] tt = new int[] { ary.Length };
for (int i=0;i<ary.Length;i++) {
tt[i] = Convert.ToInt16(ary[i]);
}
using (var db = new DB())
{
var data = db.good_Tag.Where(x => x.Level == 2 && tt.Contains(Convert.ToInt32(x.ParentID)));
ret = data.ToDictionary(it => it.ID, it => it.Name);
}
return ret;
}