摘要: 项目中老是需要对DataTable过滤,传统办法使用的就是for循环了,麻烦,用着也不爽,试了试Linq可以。小例子:IEnumerable<DataRow> query = from r in dt.AsEnumerable()where r.Field<int>("ID")>10select r只为引起一点思路。 阅读全文
posted @ 2011-08-31 11:42 nyth 阅读(1401) 评论(1) 推荐(1) 编辑