DataTable中Linq查询(where,group by)

Posted liuperit

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DataTable中Linq查询(where,group by)相关的知识,希望对你有一定的参考价值。

 

//经理
List<string> jtlist = (from t in jtTable.AsEnumerable()
group t by new
{
t1 = t.Field<string>("JTManager")
} into m
select new
{
JTManager = m.Key.t1
} into c
where !string.IsNullOrEmpty(c.JTManager)
select c.JTManager).ToList();

以上是关于DataTable中Linq查询(where,group by)的主要内容,如果未能解决你的问题,请参考以下文章