0
DataTable table = DataProvider.GetTable()
var clientIds = from r in table.AsEnumerable()
select r.Field<string>("CLIENT_ID");
我想要clientIds
成为List<string>
。目前,它是一个EnumerableRowCollection<>
LINQ to DataSet从DataTable获取泛型列表
我缺少什么?
+1,谢谢。喜欢语法。 – JohnB 2011-01-11 17:20:10