Condividi tramite


Proprietà EntityDataReader.HasRows

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene un valore che indica se EntityDataReader contiene una o più righe.

Spazio dei nomi:  System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Overrides ReadOnly Property HasRows As Boolean 
    Get
'Utilizzo
Dim instance As EntityDataReader 
Dim value As Boolean 

value = instance.HasRows
public override bool HasRows { get; }
public:
virtual property bool HasRows {
    bool get () override;
}
abstract HasRows : bool 
override HasRows : bool
override function get HasRows () : boolean

Valore proprietà

Tipo: System.Boolean
true se EntityDataReader contiene una o più righe; in caso contrario, false.

Vedere anche

Riferimento

EntityDataReader Classe

Spazio dei nomi System.Data.Entity.Core.EntityClient