Nico
Nico

Reputation: 237

Checking datareader to be empty

How do I check if my datareader is completely empty ?

Not talking about nullvalues but completely empty (no records).

Thanks!

Upvotes: 2

Views: 140

Answers (1)

Guffa
Guffa

Reputation: 700770

Use the HasRows property to check if there are any rows or not.

Upvotes: 6

Related Questions