Reputation: 67263
SqlDataReader.Read() is a method which returns a bool but advanced to the next record in a recordset.
What factors influence whether true or false is returned?
Thanks
Upvotes: 1
Views: 173
Reputation: 838964
From the documentation:
true if there are more rows; otherwise false.
Upvotes: 2
Reputation: 564771
From the help of SqlDataReader.Read:
returns true if there are more rows; otherwise false.
Upvotes: 2