且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何测试 DataSet 是否为空?

更新时间:2023-11-29 16:35:52

如果我理解正确,这应该对你有用

If I understand correctly, this should work for you

if (ds.Tables[0].Rows.Count == 0)
{
    //
}