General information
Category:
The Mere Mortals .NET Framework
Title:
IDataReader HasRows Property
Kevin or anyone in the know,
I'm using IDataReaders in my business objects to bind to certain grids and I notice that the HasRows property is apart of the specific class (System.Data.OleDb.OlDbDataReader) but not the Interface (System.Data.IDataReader).
I would have thought that the HasRows property would have been a good condidate for the Interface implementation, but no one else seems to be complaining so I assume that I'm in the dark about this subject.
Is there an easy way to determine if the IDataReader has rows without casting the reader to the specific class (which would defeat the purpose of the Interface in the first place)?
Thanks
Bill Williams
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only