开发者

What influences the return value of SqlDataReader.Read()?

开发者 https://www.devze.com 2022-12-28 05:32 出处:网络
SqlDataReader.Read() is a method which returns a bool but adva开发者_C百科nced to the next record in a recordset.

SqlDataReader.Read() is a method which returns a bool but adva开发者_C百科nced to the next record in a recordset.

What factors influence whether true or false is returned?

Thanks


From the help of SqlDataReader.Read:

returns true if there are more rows; otherwise false.


From the documentation:

true if there are more rows; otherwise false.

0

精彩评论

暂无评论...
验证码 换一张
取 消