Name

HasRows —

Synopsis


bool hasRows = DataReader.HasRows

Returns true if the DataReader has at least one row. This convenience feature (which was added in the .NET Framework 1.1) is provided so you can quickly tell if there is a result set without advancing to the first row. This is primarily useful when you need to decide whether or not to pass the DataReader to another function or component that will process it.