datatable使用linq查询(bb是一个类)

List<string> lstIDq = (from d in ds.Tables[0].AsEnumerable()
select d.Field<string>(bb.起飞)).ToList<string>();
List<string> lstIDl = (from d in ds.Tables[0].AsEnumerable()
select d.Field<string>(bb.落地)).ToList<string>();

posted @ 2016-07-28 10:53  吃葡萄不吐葡萄脾  阅读(120)  评论(0编辑  收藏  举报