Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement