Reputation: 237
How do I check if my datareader is completely empty ?
Not talking about nullvalues but completely empty (no records).
Thanks!
Upvotes: 2
Views: 140
Reputation: 700770
Use the HasRows property to check if there are any rows or not.
Upvotes: 6