SqlDataReader Properties
.NET Framework 4.5
The SqlDataReader type exposes the following members.
| Name | Description | |
|---|---|---|
|
Connection | Gets the SqlConnection associated with the SqlDataReader. |
|
Depth | Gets a value that indicates the depth of nesting for the current row. (Overrides DbDataReader.Depth.) |
|
FieldCount | Gets the number of columns in the current row. (Overrides DbDataReader.FieldCount.) |
|
HasRows | Gets a value that indicates whether the SqlDataReader contains one or more rows. (Overrides DbDataReader.HasRows.) |
|
IsClosed | Retrieves a Boolean value that indicates whether the specified SqlDataReader instance has been closed. (Overrides DbDataReader.IsClosed.) |
|
Item[Int32] | Gets the value of the specified column in its native format given the column ordinal. (Overrides DbDataReader.Item.) |
|
Item[String] | Gets the value of the specified column in its native format given the column name. (Overrides DbDataReader.Item.) |
|
RecordsAffected | Gets the number of rows changed, inserted, or deleted by execution of the Transact-SQL statement. (Overrides DbDataReader.RecordsAffected.) |
|
VisibleFieldCount | Gets the number of fields in the SqlDataReader that are not hidden. (Overrides DbDataReader.VisibleFieldCount.) |