Linq学习

                IEnumerable<DataRow> cbCurrent = from dr in cbRows.AsEnumerable()
                                                 where
                                                 dr.Field<string>("ObjectNO").ToString() == row["运输单号"].ToString() ||
                                                 dr.Field<string>("ObjectNO").ToString() == row["报关任务单"].ToString()
                                                 select dr;

 

 

            //收入
            DataRow[] srRows = chargeTable.Select(" chargeType = 1 and chargeSort <> 3");
            //代垫
            DataRow[] ddRows = chargeTable.Select(" chargeType = 1 and chargeSort = 3");
            //应付
            DataRow[] yfRows = chargeTable.Select(" chargeType = 2");
            //业务成本
            DataRow[] cbRows = chargeTable.Select(" chargeType = 3");

 

 

 

你可能感兴趣的:(LINQ)