Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IDataReader HasRows Property
Message
De
24/05/2005 10:50:16
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
IDataReader HasRows Property
Divers
Thread ID:
01017076
Message ID:
01017076
Vues:
457
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
Fil
Voir

Click here to load this message in the networking platform