EntityDataReader.HasRows Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value that indicates whether this EntityDataReader contains one or more rows.

Namespace:   System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public override bool HasRows { get; }

Property Value

Type: System.Boolean

true if the EntityDataReader contains one or more rows; otherwise, false.

.NET Framework
Available since 3.5
Return to top