How do I use lambda expressions to filter DataRows?

后端 未结 5 1683
时光取名叫无心
时光取名叫无心 2021-02-13 09:04

How can I search rows in a datatable for a row with Col1=\"MyValue\"

I\'m thinking something like

Assert.IsTrue(dataSet.Tables[0].Rows.
    FindAll(x =&g         


        
5条回答
  •  我在风中等你
    2021-02-13 09:40

    The code you wrote checks that there's only one row which fulfils your search condition. If you actually want the rows, drop the Assert and Count

提交回复
热议问题