标签:tor mda table enum ble with bsp art sele
数据筛选
dt.Select($"ID = ‘{item}‘");
dt.AsEnumerable().Where(r => r.Field<string>("Name").StartsWith("A")).FirstOrDefault();
注意AsEnumerable不可连续使用,比如:
var itemdata = dt.AsEnumerable().Where(r => r.Field<string>("Name").StartsWith("A"));
var od = itemdata.AsEnumerable().Where(r => r.Field<string>("AGE").StartsWith("2"));
其中一列数据抽取:
(from d in dt.AsEnumerable() select d.Field<string>("Name"));
标签:tor mda table enum ble with bsp art sele
原文地址:https://www.cnblogs.com/jiaoyi1e/p/13294557.html