OracleDataReader Classe
Definição
Fornece uma maneira de ler um fluxo somente de encaminhamento de linhas de dados por meio de uma fonte de dados.Provides a way of reading a forward-only stream of data rows from a data source. Essa classe não pode ser herdada.This class cannot be inherited.
public ref class OracleDataReader sealed : MarshalByRefObject, IDisposable, System::Collections::IEnumerable, System::Data::IDataReader
public ref class OracleDataReader sealed : System::Data::Common::DbDataReader
public sealed class OracleDataReader : MarshalByRefObject, IDisposable, System.Collections.IEnumerable, System.Data.IDataReader
public sealed class OracleDataReader : System.Data.Common.DbDataReader
type OracleDataReader = class
inherit MarshalByRefObject
interface IDataReader
interface IDisposable
interface IDataRecord
interface IEnumerable
type OracleDataReader = class
inherit DbDataReader
Public NotInheritable Class OracleDataReader
Inherits MarshalByRefObject
Implements IDataReader, IDisposable, IEnumerable
Public NotInheritable Class OracleDataReader
Inherits DbDataReader
- Herança
- Herança
- Implementações
Exemplos
O exemplo a seguir cria um OracleConnection , um OracleCommand e um OracleDataReader .The following example creates an OracleConnection, an OracleCommand, and an OracleDataReader. O exemplo lê os dados, gravando-os no console.The example reads through the data, writing it out to the console. Por fim, o exemplo fecha o OracleDataReader e, em seguida, o OracleConnection .Finally, the example closes the OracleDataReader, then the OracleConnection.
public void ReadData(string connectionString)
{
string queryString = "SELECT EmpNo, EName FROM Emp";
using (OracleConnection connection = new OracleConnection(connectionString))
{
OracleCommand command = new OracleCommand(queryString, connection);
connection.Open();
using(OracleDataReader reader = command.ExecuteReader())
{
// Always call Read before accessing data.
while (reader.Read())
{
Console.WriteLine(reader.GetInt32(0) + ", " + reader.GetString(1));
}
}
}
}
Public Sub ReadData(ByVal connectionString As String)
Dim queryString As String = "SELECT EmpNo, EName FROM Emp"
Using connection As New OracleConnection(connectionString)
Dim command As New OracleCommand(queryString, connection)
connection.Open()
Using reader As OracleDataReader = command.ExecuteReader()
' Always call Read before accessing data.
While reader.Read()
Console.WriteLine(reader.GetInt32(0).ToString() + ", " _
+ reader.GetString(1))
End While
End Using
End Using
End Sub
Comentários
Para criar um OracleDataReader , você deve chamar o ExecuteReader método do OracleCommand objeto, em vez de usar diretamente um construtor.To create an OracleDataReader, you must call the ExecuteReader method of the OracleCommand object, rather than directly using a constructor.
As alterações feitas em um ResultSet por outro processo ou thread enquanto os dados estão sendo lidos podem ser visíveis para o usuário do OracleDataReader .Changes made to a resultset by another process or thread while data is being read may be visible to the user of the OracleDataReader.
IsClosed e RecordsAffected são as únicas propriedades que podem ser chamadas depois que o OracleDataReader for fechado.IsClosed and RecordsAffected are the only properties that you can call after the OracleDataReader is closed. Em alguns casos, você deve chamar Close antes de poder chamar RecordsAffected .In some cases, you must call Close before you can call RecordsAffected.
Mais de um OracleDataReader pode ser aberto em um determinado momento.More than one OracleDataReader can be open at any given time.
Os dois exemplos de Visual Basic a seguir demonstram como usar um OracleDataReader para recuperar um Oracle REF CURSOR .The following two Visual Basic examples demonstrate how to use an OracleDataReader to retrieve an Oracle REF CURSOR. Esses exemplos usam tabelas que são definidas no esquema Oracle Scott/Tiger e exigem o seguinte pacote PL/SQL e o corpo do pacote.These examples use tables that are defined in the Oracle Scott/Tiger schema, and require the following PL/SQL package and package body. Você deve criá-los em seu servidor para usar os exemplos.You must create these on your server to use the examples.
Crie o seguinte pacote Oracle no servidor Oracle.Create the following Oracle package on the Oracle server.
CREATE OR REPLACE PACKAGE CURSPKG AS
TYPE T_CURSOR IS REF CURSOR;
PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER,
IO_CURSOR IN OUT T_CURSOR);
PROCEDURE OPEN_TWO_CURSORS (EMPCURSOR OUT T_CURSOR,
DEPTCURSOR OUT T_CURSOR);
END CURSPKG;
/
Crie o seguinte corpo do pacote Oracle no servidor Oracle.Create the following Oracle package body on the Oracle server.
CREATE OR REPLACE PACKAGE BODY CURSPKG AS
PROCEDURE OPEN_ONE_CURSOR (N_EMPNO IN NUMBER,
IO_CURSOR OUT T_CURSOR)
IS
V_CURSOR T_CURSOR;
BEGIN
IF N_EMPNO <> 0 THEN
OPEN V_CURSOR FOR
SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
FROM EMP, DEPT
WHERE EMP.DEPTNO = DEPT.DEPTNO
AND EMP.EMPNO = N_EMPNO;
ELSE
OPEN V_CURSOR FOR
SELECT EMP.EMPNO, EMP.ENAME, DEPT.DEPTNO, DEPT.DNAME
FROM EMP, DEPT
WHERE EMP.DEPTNO = DEPT.DEPTNO;
END IF;
IO_CURSOR := V_CURSOR;
END OPEN_ONE_CURSOR;
PROCEDURE OPEN_TWO_CURSORS (EMPCURSOR OUT T_CURSOR,
DEPTCURSOR OUT T_CURSOR)
IS
V_CURSOR1 T_CURSOR;
V_CURSOR2 T_CURSOR;
BEGIN
OPEN V_CURSOR1 FOR SELECT * FROM EMP;
OPEN V_CURSOR2 FOR SELECT * FROM DEPT;
EMPCURSOR := V_CURSOR1;
DEPTCURSOR := V_CURSOR2;
END OPEN_TWO_CURSORS;
END CURSPKG;
/
Este exemplo de Visual Basic executa um procedimento armazenado PL/SQL que retorna um REF CURSOR parâmetro e lê o valor como um OracleDataReader .This Visual Basic example executes a PL/SQL stored procedure that returns a REF CURSOR parameter, and reads the value as an OracleDataReader.
Private Sub ReadOracleData(ByVal connectionString As String)
Dim connection As New OracleConnection(connectionString)
Dim command As New OracleCommand()
Dim reader As OracleDataReader
connection.Open()
command.Connection = connection
command.CommandText = "CURSPKG.OPEN_ONE_CURSOR"
command.CommandType = CommandType.StoredProcedure
command.Parameters.Add(New OracleParameter("N_EMPNO", OracleType.Number)).Value = 7369
command.Parameters.Add(New OracleParameter("IO_CURSOR", OracleType.Cursor)).Direction = ParameterDirection.Output
reader = command.ExecuteReader()
While (reader.Read())
' Do something with the values.
End While
reader.Close()
connection.Close()
End Sub
Este exemplo Visual Basic executa um procedimento armazenado PL/SQL que retorna dois REF CURSOR parâmetros e lê os valores usando um OracleDataReader .This Visual Basic example executes a PL/SQL stored procedure that returns two REF CURSOR parameters, and reads the values using an OracleDataReader.
Private Sub ReadOracleData(ByVal connectionString As String)
Dim dataSet As New DataSet()
Dim connection As New OracleConnection(connectionString)
Dim command As New OracleCommand()
Dim reader As OracleDataReader
connection.Open()
command.Connection = connection
command.CommandText = "CURSPKG.OPEN_TWO_CURSORS"
command.CommandType = CommandType.StoredProcedure
command.Parameters.Add(New OracleParameter("EMPCURSOR", OracleType.Cursor)).Direction = ParameterDirection.Output
command.Parameters.Add(New OracleParameter("DEPTCURSOR", OracleType.Cursor)).Direction = ParameterDirection.Output
reader = command.ExecuteReader(CommandBehavior.CloseConnection)
While (reader.Read())
' Do something with the values.
End While
reader.NextResult()
While (reader.Read())
' Do something with the values.
End While
reader.Close()
connection.Close()
End Sub
Este exemplo de C# cria uma tabela do Oracle e a carrega com dados.This C# example creates an Oracle table and loads it with data. Você deve executar este exemplo antes de executar o exemplo subsequente, que demonstra o uso de um OracleDataReader para acessar os dados usando estruturas OracleType.You must run this example prior to running the subsequent example, which demonstrates using an OracleDataReader to access the data using OracleType structures.
public void Setup(string connectionString)
{
OracleConnection connection = new OracleConnection(connectionString);
try
{
connection.Open();
OracleCommand command = connection.CreateCommand();
command.CommandText ="CREATE TABLE OracleTypesTable (MyVarchar2 varchar2(3000),MyNumber number(28,4) PRIMARY KEY,MyDate date, MyRaw raw(255))";
command.ExecuteNonQuery();
command.CommandText ="INSERT INTO OracleTypesTable VALUES ('test', 2, to_date('2000-01-11 12:54:01','yyyy-mm-dd hh24:mi:ss'), '0001020304')";
command.ExecuteNonQuery();
command.CommandText="SELECT * FROM OracleTypesTable";
}
catch(Exception)
{
}
finally
{
connection.Close();
}
}
Este exemplo de C# usa um OracleDataReader para acessar dados e usa várias OracleType estruturas para exibir os dados.This C# example uses an OracleDataReader to access data, and uses several OracleType structures to display the data.
public void ReadOracleTypesExample(string connectionString)
{
OracleConnection connection = new OracleConnection(connectionString);
connection.Open();
OracleCommand command = connection.CreateCommand();
try
{
command.CommandText = "SELECT * FROM OracleTypesTable";
OracleDataReader reader = command.ExecuteReader();
reader.Read();
//Using the Oracle specific getters for each type is faster than
//using GetOracleValue.
//First column, MyVarchar2, is a VARCHAR2 data type in Oracle Server
//and maps to OracleString.
OracleString oraclestring1 = reader.GetOracleString(0);
Console.WriteLine("OracleString " + oraclestring1.ToString());
//Second column, MyNumber, is a NUMBER data type in Oracle Server
//and maps to OracleNumber.
OracleNumber oraclenumber1 = reader.GetOracleNumber(1);
Console.WriteLine("OracleNumber " + oraclenumber1.ToString());
//Third column, MyDate, is a DATA data type in Oracle Server
//and maps to OracleDateTime.
OracleDateTime oracledatetime1 = reader.GetOracleDateTime(2);
Console.WriteLine("OracleDateTime " + oracledatetime1.ToString());
//Fourth column, MyRaw, is a RAW data type in Oracle Server and
//maps to OracleBinary.
OracleBinary oraclebinary1 = reader.GetOracleBinary(3);
//Calling value on a null OracleBinary throws
//OracleNullValueException; therefore, check for a null value.
if (oraclebinary1.IsNull==false)
{
foreach(byte b in oraclebinary1.Value)
{
Console.WriteLine("byte " + b.ToString());
}
}
reader.Close();
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
}
finally
{
connection.Close();
}
}
Propriedades
| Depth |
Obtém um valor que indica a profundidade de aninhamento da linha atual.Gets a value indicating the depth of nesting for the current row. |
| FieldCount |
Obtém o número de colunas na linha atual.Gets the number of columns in the current row. |
| HasRows |
Obtém um valor que indica se o OracleDataReader contém uma ou mais linhas.Gets a value indicating whether the OracleDataReader contains one or more rows. |
| IsClosed |
Indica se o OracleDataReader está fechado.Indicates whether the OracleDataReader is closed. |
| Item[Int32] |
Obtém o valor da coluna especificada em seu formato nativo de acordo com o ordinal da coluna.Gets the value of the specified column in its native format given the column ordinal. |
| Item[String] |
Obtém o valor da coluna especificada em seu formato nativo de acordo com o nome da coluna.Gets the value of the specified column in its native format given the column name. |
| RecordsAffected |
Obtém o número de linhas alteradas, inseridas ou excluídas pela execução da instrução SQL.Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. |
| VisibleFieldCount |
Obtém o número de campos em DbDataReader que não estão ocultos.Gets the number of fields in the DbDataReader that are not hidden. (Herdado de DbDataReader) |
Métodos
| Close() |
Fecha o objeto OracleDataReader.Closes the OracleDataReader object. |
| CloseAsync() |
Fecha de maneira assíncrona o objeto DbDataReader.Asynchronously closes the DbDataReader object. (Herdado de DbDataReader) |
| CreateObjRef(Type) |
Cria um objeto que contém todas as informações relevantes necessárias para gerar um proxy usado para se comunicar com um objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Herdado de MarshalByRefObject) |
| Dispose() |
Libera os recursos usados por este objeto.Releases the resources that are used by this object. |
| Dispose() |
Libera todos os recursos usados pela instância atual da classe DbDataReader.Releases all resources used by the current instance of the DbDataReader class. (Herdado de DbDataReader) |
| Dispose(Boolean) |
Libera os recursos não gerenciados usados pelo DbDataReader e opcionalmente libera os recursos gerenciados.Releases the unmanaged resources used by the DbDataReader and optionally releases the managed resources. (Herdado de DbDataReader) |
| DisposeAsync() |
Libera de forma assíncrona todos os recursos usados pela instância atual da classe DbDataReader.Asynchronously releases all resources used by the current instance of the DbDataReader class. (Herdado de DbDataReader) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetBoolean(Int32) |
Obtém o valor da coluna especificada como um booliano.Gets the value of the specified column as a Boolean. |
| GetByte(Int32) |
Obtém o valor da coluna especificada como um byte.Gets the value of the specified column as a byte. |
| GetBytes(Int32, Int64, Byte[], Int32, Int32) |
Lê um fluxo de bytes do deslocamento de coluna especificado no buffer como uma matriz, iniciando no deslocamento de buffer especificado.Reads a stream of bytes from the specified column offset into the buffer as an array, starting at the given buffer offset. |
| GetChar(Int32) |
Obtém o valor da coluna especificada como um caractere.Gets the value of the specified column as a character. |
| GetChars(Int32, Int64, Char[], Int32, Int32) |
Lê um fluxo de caracteres do deslocamento de coluna especificado no buffer como uma matriz iniciada no deslocamento de buffer fornecido.Reads a stream of characters from the specified column offset into the buffer as an array, starting at the given buffer offset. |
| GetColumnSchemaAsync(CancellationToken) |
Essa é a versão assíncrona de GetColumnSchema(DbDataReader).This is the asynchronous version of GetColumnSchema(DbDataReader).
Provedores devem substituir com uma implementação apropriada.Providers should override with an appropriate implementation.
Opcionalmente, o |
| GetData(Int32) |
Retorna um IDataReader para o ordinal da coluna especificada.Returns an IDataReader for the specified column ordinal. |
| GetData(Int32) |
Retorna um leitor de dados aninhado para a coluna solicitada.Returns a nested data reader for the requested column. (Herdado de DbDataReader) |
| GetDataTypeName(Int32) |
Obtém o nome do tipo de dados de origem.Gets the name of the source data type. |
| GetDateTime(Int32) |
Obtém o valor da coluna especificada como um objeto |
| GetDbDataReader(Int32) |
Retorna um objeto DbDataReader para o ordinal da coluna solicitado que pode ser substituído por uma implementação específica do provedor.Returns a DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation. (Herdado de DbDataReader) |
| GetDecimal(Int32) |
Obtém o valor da coluna especificada como um objeto |
| GetDouble(Int32) |
Obtém o valor da coluna especificada como um número de ponto flutuante de precisão dupla.Gets the value of the specified column as a double-precision floating point number. |
| GetEnumerator() |
Retorna um IEnumerator que pode ser usado para iterar pelas linhas do leitor de dados.Returns an IEnumerator that can be used to iterate through the rows in the data reader. |
| GetFieldType(Int32) |
Obtém o Type que é o tipo de dados do objeto.Gets the Type that is the data type of the object. |
| GetFieldValue<T>(Int32) |
Obtém o valor da coluna especificada como um tipo solicitado.Gets the value of the specified column as the requested type. (Herdado de DbDataReader) |
| GetFieldValueAsync<T>(Int32) |
Obtém de forma assíncrona o valor da coluna especificada como um tipo solicitado.Asynchronously gets the value of the specified column as the requested type. (Herdado de DbDataReader) |
| GetFieldValueAsync<T>(Int32, CancellationToken) |
Obtém de forma assíncrona o valor da coluna especificada como um tipo solicitado.Asynchronously gets the value of the specified column as the requested type. (Herdado de DbDataReader) |
| GetFloat(Int32) |
Obtém o valor da coluna especificada como um número de ponto flutuante de precisão simples.Gets the value of the specified column as a single-precision floating-point number. |
| GetGuid(Int32) |
Obtém o valor da coluna especificada como um GUID (identificador global exclusivo).Gets the value of the specified column as a globally-unique identifier (GUID). |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetInt16(Int32) |
Obtém o valor da coluna especificada como um inteiro com sinal de 16 bits.Gets the value of the specified column as a 16-bit signed integer. |
| GetInt32(Int32) |
Obtém o valor da coluna especificada como um inteiro com sinal de 32 bits.Gets the value of the specified column as a 32-bit signed integer. |
| GetInt64(Int32) |
Obtém o valor da coluna especificada como um inteiro com sinal de 64 bits.Gets the value of the specified column as a 64-bit signed integer. |
| GetLifetimeService() |
Obsoleto.
Recupera o objeto de serviço de tempo de vida atual que controla a política de ciclo de vida para esta instância.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Herdado de MarshalByRefObject) |
| GetName(Int32) |
Obtém o nome da coluna especificada.Gets the name of the specified column. |
| GetOracleBFile(Int32) |
Obtém o valor da coluna especificada como um objeto OracleBFile.Gets the value of the specified column as an OracleBFile object. |
| GetOracleBinary(Int32) |
Obtém o valor da coluna especificada como um objeto OracleBinary.Gets the value of the specified column as an OracleBinary object. |
| GetOracleDateTime(Int32) |
Obtém o valor da coluna especificada como um objeto OracleDateTime.Gets the value of the specified column as an OracleDateTime object. |
| GetOracleLob(Int32) |
Obtém o valor da coluna especificada como um objeto OracleLob.Gets the value of the specified column as an OracleLob object. |
| GetOracleMonthSpan(Int32) |
Obtém o valor da coluna especificada como um objeto OracleMonthSpan.Gets the value of the specified column as an OracleMonthSpan object. |
| GetOracleNumber(Int32) |
Obtém o valor da coluna especificada como um objeto OracleNumber.Gets the value of the specified column as an OracleNumber object. |
| GetOracleString(Int32) |
Obtém o valor da coluna especificada como um objeto OracleString.Gets the value of the specified column as an OracleString object. |
| GetOracleTimeSpan(Int32) |
Obtém o valor da coluna especificada como um objeto OracleTimeSpan.Gets the value of the specified column as an OracleTimeSpan object. |
| GetOracleValue(Int32) |
Obtém o valor da coluna no ordinal especificado em seu formato Oracle.Gets the value of the column at the specified ordinal in its Oracle format. |
| GetOracleValues(Object[]) |
Obtém todas as colunas de atributo na linha atual no formato Oracle.Gets all the attribute columns in the current row in Oracle format. |
| GetOrdinal(String) |
Obtém a ordinal da coluna, de acordo com o nome da coluna.Gets the column ordinal, given the name of the column. |
| GetProviderSpecificFieldType(Int32) |
Obtém um |
| GetProviderSpecificValue(Int32) |
Obtém um |
| GetProviderSpecificValues(Object[]) |
Obtém uma matriz de objetos que são uma representação dos valores específicos do provedor subjacente.Gets an array of objects that are a representation of the underlying provider specific values. |
| GetSchemaTable() |
Retorna um DataTable que descreve os metadados da coluna de OracleDataReader.Returns a DataTable that describes the column metadata of the OracleDataReader. |
| GetSchemaTableAsync(CancellationToken) |
Essa é a versão assíncrona de GetSchemaTable().This is the asynchronous version of GetSchemaTable().
Provedores devem substituir com uma implementação apropriada.Providers should override with an appropriate implementation.
Opcionalmente, o |
| GetStream(Int32) |
Obtém um fluxo para recuperar dados da coluna especificada.Gets a stream to retrieve data from the specified column. (Herdado de DbDataReader) |
| GetString(Int32) |
Obtém o valor da coluna especificada como uma cadeia de caracteres.Gets the value of the specified column as a string. |
| GetTextReader(Int32) |
Obtém um leitor de texto para recuperar dados da coluna.Gets a text reader to retrieve data from the column. (Herdado de DbDataReader) |
| GetTimeSpan(Int32) |
Obtém o valor da coluna especificada como um |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| GetValue(Int32) |
Obtém o valor da coluna no ordinal especificado em seu formato nativo.Gets the value of the column at the specified ordinal in its native format. |
| GetValues(Object[]) |
Popula uma matriz de objetos com os valores da coluna da linha atual.Populates an array of objects with the column values of the current row. |
| InitializeLifetimeService() |
Obsoleto.
Obtém um objeto de serviço de tempo de vida para controlar a política de tempo de vida para essa instância.Obtains a lifetime service object to control the lifetime policy for this instance. (Herdado de MarshalByRefObject) |
| IsDBNull(Int32) |
Obtém um valor que indica se a coluna contém valores ausentes ou inexistente.Gets a value indicating whether the column contains non-existent or missing values. |
| IsDBNullAsync(Int32) |
Obtém, de maneira assíncrona, um valor que indica se a coluna contém valores ausentes ou inexistente.Asynchronously gets a value that indicates whether the column contains non-existent or missing values. (Herdado de DbDataReader) |
| IsDBNullAsync(Int32, CancellationToken) |
Obtém, de maneira assíncrona, um valor que indica se a coluna contém valores ausentes ou inexistente.Asynchronously gets a value that indicates whether the column contains non-existent or missing values. (Herdado de DbDataReader) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| MemberwiseClone(Boolean) |
Cria uma cópia superficial do objeto MarshalByRefObject atual.Creates a shallow copy of the current MarshalByRefObject object. (Herdado de MarshalByRefObject) |
| NextResult() |
Avança o OracleDataReader para o próximo resultado.Advances the OracleDataReader to the next result. |
| NextResultAsync() |
Avança de maneira assíncrona o leitor para o resultado seguinte ao ler os resultados de um lote de instruções.Asynchronously advances the reader to the next result when reading the results of a batch of statements. (Herdado de DbDataReader) |
| NextResultAsync(CancellationToken) |
Avança de maneira assíncrona o leitor para o resultado seguinte ao ler os resultados de um lote de instruções.Asynchronously advances the reader to the next result when reading the results of a batch of statements. (Herdado de DbDataReader) |
| Read() |
Avança o OracleDataReader para o próximo registro.Advances the OracleDataReader to the next record. |
| ReadAsync() |
Avança de maneira assíncrona o leitor para o próximo registro em um conjunto de resultados.Asynchronously advances the reader to the next record in a result set. (Herdado de DbDataReader) |
| ReadAsync(CancellationToken) |
Avança de maneira assíncrona o leitor para o próximo registro em um conjunto de resultados.Asynchronously advances the reader to the next record in a result set. (Herdado de DbDataReader) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
Implantações explícitas de interface
| IDataReader.Close() |
Para obter uma descrição desse membro, confira Close().For a description of this member, see Close(). (Herdado de DbDataReader) |
| IDataReader.GetSchemaTable() |
Para obter uma descrição desse membro, confira GetSchemaTable().For a description of this member, see GetSchemaTable(). (Herdado de DbDataReader) |
| IDataRecord.GetData(Int32) |
Para obter uma descrição desse membro, confira GetData(Int32).For a description of this member, see GetData(Int32). (Herdado de DbDataReader) |
| IEnumerable.GetEnumerator() |
Retorna um enumerador que itera em uma coleção.Returns an enumerator that iterates through a collection. |
Métodos de Extensão
| CanGetColumnSchema(DbDataReader) |
Obtém um valor que indica se um DbDataReader pode obter um esquema de coluna.Gets a value that indicates whether a DbDataReader can get a column schema. |
| GetColumnSchema(DbDataReader) |
Obtém o esquema da coluna (coleção DbColumn) para um DbDataReader.Gets the column schema (DbColumn collection) for a DbDataReader. |
| Cast<TResult>(IEnumerable) |
Converte os elementos de um IEnumerable para o tipo especificado.Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
Filtra os elementos de um IEnumerable com base em um tipo especificado.Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
Habilita a paralelização de uma consulta.Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
Converte um IEnumerable em um IQueryable.Converts an IEnumerable to an IQueryable. |