LINQ query on a DataTable

前端 未结 23 1676
执笔经年
执笔经年 2020-11-22 01:59

I\'m trying to perform a LINQ query on a DataTable object and bizarrely I am finding that performing such queries on DataTables is not straightforward. For example:

23条回答
  •  滥情空心
    2020-11-22 02:11

    For VB.NET The code will look like this:

    Dim results = From myRow In myDataTable  
    Where myRow.Field(Of Int32)("RowNo") = 1 Select myRow
    

提交回复
热议问题