DataTable dt=new DataTable(); DataRow[] tempdr=dt.Select(" column='"+columnName+"'"); 从网易博客(http://cxwstar.blog.163.com/blog/static/484687632016231103553695/)迁移,原发表于2016年3月31日.
DataTable dt=new DataTable(); DataRow[] tempdr=dt.Select(" column='"+columnName+"'"); 从网易博客(http://cxwstar.blog.163.com/blog/static/484687632016231103553695/)迁移,原发表于2016年3月31日.
using System.Data; using System.Linq; public class Demo { public static DataTable Method(DataTable dt1, DataTable dt2) { var normalReceive = from r2 in dt2.AsEnumerable() where (from r1 in dt1.AsEnumerable() select r1.Field<string>("taskmch") ).Contains(…