DataTable获取单列

var idList=(from DataRow r in dataTable.Rows select r.Field<string>("ID")).ToList();

 

posted @ 2020-04-27 13:53  yomi丶  阅读(216)  评论(0编辑  收藏  举报