linq

新建强类型数据集 

DataSet1.lmbDataTable lmbTable = new DataSet1TableAdapters.lmbTableAdapter().GetData(); 

 var tabel = from l in lmbTable 

where lmbh==8 select l;

 foreach (var t in tabel) 

 { Response.Write("

"+t.lmmc+" "+t.lmlj+"

"); }

原文地址:https://www.cnblogs.com/liucyi/p/1893990.html