Navigation:  Advantage .NET Data Provider > AdsDataReader Class > AdsDataReader Properties >


Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Gets a value indicating whether the data reader has one or more rows.

public bool HasRows{ get; }


This returns true if the reader object has at least one row in it when the reader object is created. If it is an empty result set at creation time, this property will be false.

Note that the HasRows property is not updated in response to the addition or deletion of records by the AdsExtendedReader object. The intention of this property is to reflect only whether a call to the Read() method will return true for at least one row immediately after creating the reader object.