Export (0) Print
Expand All

DbDataReader Methods

The DbDataReader type exposes the following members.

  NameDescription
Public method Close Closes the DbDataReader object.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose() Releases all resources used by the current instance of the DbDataReader class.
Protected method Dispose(Boolean) Releases the managed resources used by the DbDataReader and optionally releases the unmanaged resources.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBoolean Gets the value of the specified column as a Boolean.
Public method GetByte Gets the value of the specified column as a byte.
Public method GetBytes Reads a stream of bytes from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset.
Public method GetChar Gets the value of the specified column as a single character.
Public method GetChars Reads a stream of characters from the specified column, starting at location indicated by dataOffset, into the buffer, starting at the location indicated by bufferOffset.
Public method GetData Returns a DbDataReader object for the requested column ordinal.
Public method GetDataTypeName Gets name of the data type of the specified column.
Public method GetDateTime Gets the value of the specified column as a DateTime object.
Protected method GetDbDataReader Returns a DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation.
Public method GetDecimal Gets the value of the specified column as a Decimal object.
Public method GetDouble Gets the value of the specified column as a double-precision floating point number.
Public method GetEnumerator Returns an IEnumerator that can be used to iterate through the rows in the data reader.
Public method GetFieldType Gets the data type of the specified column.
Public method GetFloat Gets the value of the specified column as a single-precision floating point number.
Public method GetGuid Gets the value of the specified column as a globally-unique identifier (GUID).
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetInt16 Gets the value of the specified column as a 16-bit signed integer.
Public method GetInt32 Gets the value of the specified column as a 32-bit signed integer.
Public method GetInt64 Gets the value of the specified column as a 64-bit signed integer.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetName Gets the name of the column, given the zero-based column ordinal.
Public method GetOrdinal Gets the column ordinal given the name of the column.
Public method GetProviderSpecificFieldType Returns the provider-specific field type of the specified column.
Public method GetProviderSpecificValue Gets the value of the specified column as an instance of Object.
Public method GetProviderSpecificValues Gets all provider-specific attribute columns in the collection for the current row.
Public method GetSchemaTable Returns a DataTable that describes the column metadata of the DbDataReader.
Public method GetString Gets the value of the specified column as an instance of String.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue Gets the value of the specified column as an instance of Object.
Public method GetValues Populates an array of objects with the column values of the current row.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method IsDBNull Gets a value that indicates whether the column contains nonexistent or missing values.
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method NextResult Advances the reader to the next result when reading the results of a batch of statements.
Public method Read Advances the reader to the next record in a result set.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetation Private method IDataRecord.GetData For a description of this member, see IDataRecord.GetData.
Top

Community Additions

ADD
Show:
© 2014 Microsoft