In C#, what is the best way to test if a dataset is empty?

后端 未结 6 799
無奈伤痛
無奈伤痛 2021-01-12 13:59

I know you can look at the row.count or tables.count, but are there other ways to tell if a dataset is empty?

6条回答
  •  既然无缘
    2021-01-12 14:22

    To be clear, you would first need to look at all the DataTables, and then look at the count of Rows for each DataTable.

提交回复
热议问题