gpt4 book ai didi

c# - 检查数据读取器是否为空

转载 作者:行者123 更新时间:2023-12-04 08:35:38 26 4
gpt4 key购买 nike

如何检查我的数据读取器是否完全为空?

不是谈论空值,而是完全空(没有记录)。

谢谢!

最佳答案

使用HasRows属性来检查是否有任何行。

关于c# - 检查数据读取器是否为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6089386/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com