linq查询DataTable中的某列去重数据

List<int> lstHashCode = (from d in dtEquipInfo.AsEnumerable() select d.Field<int>("hashcode")).Distinct().ToList();

其中dtEquipInfo是一个带有hashcode列的DataTable

posted @ 2020-07-16 19:00  zhaogaojian  阅读(972)  评论(0编辑  收藏  举报