string[] LJLBH_TMP = sJLBH.Split(','); List<DataDRWY> LDataDRWY_TMP=new List<DataDRWY>(); for (int i = 0; i < LJLBH_TMP.Count(); i++) { int ijlbh = DbUtils.GetInt32(LJLBH_TMP[i]); var tmp = from a in LDataDRWY where a.iJLBH == ijlbh select a; if (tmp != null) { foreach (DataDRWY data_tmp in tmp)//这里循环访问 { LDataDRWY_TMP.Add(data_tmp); } } }