DataTableReader DataTableReader DataTableReader DataTableReader Class

定义

DataTableReader 以一个或多个只读、只进结果集的形式获取一个或多个 DataTable 对象的内容。The DataTableReader obtains the contents of one or more DataTable objects in the form of one or more read-only, forward-only result sets.

public ref class DataTableReader sealed : System::Data::Common::DbDataReader
public sealed class DataTableReader : System.Data.Common.DbDataReader
type DataTableReader = class
    inherit DbDataReader
Public NotInheritable Class DataTableReader
Inherits DbDataReader
继承

注解

DataTableReader工作方式与任何其他数据读取器 (如SqlDataReader) 非常相似, 不同DataTableReader之处在于, 可用于循环DataTable访问中的行。The DataTableReader works much like any other data reader, such as the SqlDataReader, except that the DataTableReader provides for iterating over rows in a DataTable. 换句话说, 它可用于循环访问缓存中的行。In other words, it provides for iterating over rows in a cache. DataTableReader处于活动状态时, 可以修改缓存的数据, 并且读取器将自动保持其位置。The cached data can be modified while the DataTableReader is active, and the reader automatically maintains its position.

从创建DataTableReader时, 生成的对象将包含一个结果集, 该结果集的数据与创建DataTable它时所用的数据相同, 但任何已标记为已删除的行除外。 DataTable DataTableReaderWhen you create a DataTableReader from a DataTable, the resulting DataTableReader object contains one result set with the same data as the DataTable from which it was created, except for any rows that have been marked as deleted. 列的显示顺序与原始DataTable中的顺序相同。The columns appear in the same order as in the original DataTable. 返回的结果的结构在架构和数据DataTable上完全相同。The structure of the returned result is identical in schema and data to the original DataTable. 如果包含多个表, 则CreateDataReader通过调用DataSet对象的方法创建的包含多个结果集。 DataSet DataTableReaderA DataTableReader that was created by calling the CreateDataReader method of a DataSet object contains multiple result sets if the DataSet contains more than one table. 结果与DataTable DataSet对象的DataTableCollection中的对象的序列相同。The results are in the same sequence as the DataTable objects in the DataTableCollection of the DataSet object.

返回的结果集仅包含每个DataRow的当前版本; 跳过标记为删除的行。The returned result set contains only the current version of each DataRow; rows that are marked for deletion are skipped.

提供一个稳定的迭代器; 也就是说, 如果在迭代期间DataTableReader修改了基础集合的大小, 则的内容将不会失效。 DataTableReaderThe DataTableReader provides a stable iterator; that is, the contents of the DataTableReader are not invalidated if the size of the underlying collection is modified during iteration. 例如, 如果Rows集合中的一个或多个行在迭代期间删除或删除, 则DataTableReader中的当前位置将相应维护, 而不会使迭代器失效。For example, if one or more rows in the Rows collection are deleted or removed during iteration, the current position within the DataTableReader is maintained appropriately and it does not invalidate the iterator.

构造函数

DataTableReader(DataTable) DataTableReader(DataTable) DataTableReader(DataTable) DataTableReader(DataTable)

通过使用提供的 DataTableReader 中的数据初始化 DataTable 类的新实例。Initializes a new instance of the DataTableReader class by using data from the supplied DataTable.

DataTableReader(DataTable[]) DataTableReader(DataTable[]) DataTableReader(DataTable[]) DataTableReader(DataTable[])

使用提供的 DataTableReader 对象的数组初始化 DataTable 类的新实例。Initializes a new instance of the DataTableReader class using the supplied array of DataTable objects.

属性

Depth Depth Depth Depth

DataTableReader 的当前行的嵌套深度。The depth of nesting for the current row of the DataTableReader.

FieldCount FieldCount FieldCount FieldCount

返回当前行中的列数。Returns the number of columns in the current row.

HasRows HasRows HasRows HasRows

获取一个值,该值指示 DataTableReader 是否包含一行还是多行。Gets a value that indicates whether the DataTableReader contains one or more rows.

IsClosed IsClosed IsClosed IsClosed

获取一个值,该值指示 DataTableReader 是否已关闭。Gets a value that indicates whether the DataTableReader is closed.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

在给定列序号的情况下,获取指定列的以本机格式表示的值。Gets the value of the specified column in its native format given the column ordinal.

Item[String] Item[String] Item[String] Item[String]

在给定列名称的情况下,获取指定列的以本机格式表示的值。Gets the value of the specified column in its native format given the column name.

RecordsAffected RecordsAffected RecordsAffected RecordsAffected

通过执行 SQL 语句获取插入、更改或删除的行数。Gets the number of rows inserted, changed, or deleted by execution of the SQL statement.

VisibleFieldCount VisibleFieldCount VisibleFieldCount VisibleFieldCount

获取 DbDataReader 中未隐藏的字段的数目。Gets the number of fields in the DbDataReader that are not hidden.

(Inherited from DbDataReader)

方法

Close() Close() Close() Close()

关闭当前的 DataTableReaderCloses the current DataTableReader.

CloseAsync() CloseAsync() CloseAsync() CloseAsync()

异步关闭 DbDataReader 对象。Asynchronously closes the DbDataReader object.

(Inherited from DbDataReader)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose() Dispose() Dispose() Dispose()

释放 DbDataReader 类的当前实例所使用的所有资源。Releases all resources used by the current instance of the DbDataReader class.

(Inherited from DbDataReader)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

释放由 DbDataReader 使用的托管资源,还可以选择释放非托管资源。Releases the managed resources used by the DbDataReader and optionally releases the unmanaged resources.

(Inherited from DbDataReader)
DisposeAsync() DisposeAsync() DisposeAsync() DisposeAsync()

异步释放 DbDataReader 类的当前实例所使用的所有资源。Asynchronously releases all resources used by the current instance of the DbDataReader class.

(Inherited from DbDataReader)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetBoolean(Int32) GetBoolean(Int32) GetBoolean(Int32) GetBoolean(Int32)

获取指定列的 Boolean 形式的值。Gets the value of the specified column as a Boolean.

GetByte(Int32) GetByte(Int32) GetByte(Int32) GetByte(Int32)

以字节的形式获取指定列的值。Gets the value of the specified column as a byte.

GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32) GetBytes(Int32, Int64, Byte[], Int32, Int32)

将从指定列偏移量开始的字节流作为从指定缓冲区偏移量开始的数组读入缓冲区中。Reads a stream of bytes starting at the specified column offset into the buffer as an array starting at the specified buffer offset.

GetChar(Int32) GetChar(Int32) GetChar(Int32) GetChar(Int32)

获取指定列的字符形式的值。Gets the value of the specified column as a character.

GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32) GetChars(Int32, Int64, Char[], Int32, Int32)

以字符数组的形式返回指定列的值。Returns the value of the specified column as a character array.

GetData(Int32) GetData(Int32) GetData(Int32) GetData(Int32)

返回所请求列的嵌套数据读取器。Returns a nested data reader for the requested column.

(Inherited from DbDataReader)
GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32)

获取一个表示指定列的数据类型的字符串。Gets a string representing the data type of the specified column.

GetDateTime(Int32) GetDateTime(Int32) GetDateTime(Int32) GetDateTime(Int32)

DateTime 对象的形式获取指定列的值。Gets the value of the specified column as a DateTime object.

GetDbDataReader(Int32) GetDbDataReader(Int32) GetDbDataReader(Int32) GetDbDataReader(Int32)

返回被请求的列序号的 DbDataReader 对象,可以使用提供程序特定的实现对该对象进行重写。Returns a DbDataReader object for the requested column ordinal that can be overridden with a provider-specific implementation.

(Inherited from DbDataReader)
GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32)

获取指定列的 Decimal 形式的值。Gets the value of the specified column as a Decimal.

GetDouble(Int32) GetDouble(Int32) GetDouble(Int32) GetDouble(Int32)

获取双精度浮点数形式的列值。Gets the value of the column as a double-precision floating point number.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回一个可用于循环访问项集合的枚举数。Returns an enumerator that can be used to iterate through the item collection.

GetFieldType(Int32) GetFieldType(Int32) GetFieldType(Int32) GetFieldType(Int32)

获取作为对象的数据类型的 TypeGets the Type that is the data type of the object.

GetFieldValue<T>(Int32) GetFieldValue<T>(Int32) GetFieldValue<T>(Int32) GetFieldValue<T>(Int32)

获取指定列的值作为请求的类型。Gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32) GetFieldValueAsync<T>(Int32)

异步获取指定列的值作为请求的类型。Asynchronously gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken) GetFieldValueAsync<T>(Int32, CancellationToken)

异步获取指定列的值作为请求的类型。Asynchronously gets the value of the specified column as the requested type.

(Inherited from DbDataReader)
GetFloat(Int32) GetFloat(Int32) GetFloat(Int32) GetFloat(Int32)

以单精度浮点数字的形式获取指定列的值。Gets the value of the specified column as a single-precision floating point number.

GetGuid(Int32) GetGuid(Int32) GetGuid(Int32) GetGuid(Int32)

以全局唯一标识符 (GUID) 的形式获取指定列的值。Gets the value of the specified column as a globally-unique identifier (GUID).

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetInt16(Int32) GetInt16(Int32) GetInt16(Int32) GetInt16(Int32)

获取指定列的 16 位有符号整数形式的值。Gets the value of the specified column as a 16-bit signed integer.

GetInt32(Int32) GetInt32(Int32) GetInt32(Int32) GetInt32(Int32)

获取指定列的 32 位带符号整数形式的值。Gets the value of the specified column as a 32-bit signed integer.

GetInt64(Int32) GetInt64(Int32) GetInt64(Int32) GetInt64(Int32)

以 64 位有符号整数的形式获取指定列的值。Gets the value of the specified column as a 64-bit signed integer.

GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetName(Int32) GetName(Int32) GetName(Int32) GetName(Int32)

获取指定列的 String 形式的值。Gets the value of the specified column as a String.

GetOrdinal(String) GetOrdinal(String) GetOrdinal(String) GetOrdinal(String)

在给定列名时获取相应的列序号。Gets the column ordinal, given the name of the column.

GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32) GetProviderSpecificFieldType(Int32)

获取指定列特定于提供程序的格式的类型。Gets the type of the specified column in provider-specific format.

GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32) GetProviderSpecificValue(Int32)

获取指定列特定于提供程序的格式的值。Gets the value of the specified column in provider-specific format.

GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[]) GetProviderSpecificValues(Object[])

使用 DataTableReader 中所有列的特定于提供程序的类型信息填充提供的数组。Fills the supplied array with provider-specific type information for all the columns in the DataTableReader.

GetSchemaTable() GetSchemaTable() GetSchemaTable() GetSchemaTable()

返回一个 DataTable,它描述 DataTableReader 的列元数据。Returns a DataTable that describes the column metadata of the DataTableReader.

GetStream(Int32) GetStream(Int32) GetStream(Int32) GetStream(Int32)

获取从指定列检索数据的流。Gets a stream to retrieve data from the specified column.

(Inherited from DbDataReader)
GetString(Int32) GetString(Int32) GetString(Int32) GetString(Int32)

获取指定列的字符串形式的值。Gets the value of the specified column as a string.

GetTextReader(Int32) GetTextReader(Int32) GetTextReader(Int32) GetTextReader(Int32)

获取文本读取器以从列中检索数据。Gets a text reader to retrieve data from the column.

(Inherited from DbDataReader)
GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetValue(Int32) GetValue(Int32) GetValue(Int32) GetValue(Int32)

获取指定列以本机格式表示的值。Gets the value of the specified column in its native format.

GetValues(Object[]) GetValues(Object[]) GetValues(Object[]) GetValues(Object[])

使用当前行的列值来填充对象数组。Populates an array of objects with the column values of the current row.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

获取生存期服务对象来控制此实例的生存期策略。Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32)

获取一个值,该值指示列中是否包含不存在的或缺少的值。Gets a value that indicates whether the column contains non-existent or missing values.

IsDBNullAsync(Int32) IsDBNullAsync(Int32) IsDBNullAsync(Int32) IsDBNullAsync(Int32)

异步获取一个值,该值指示列中是否包含不存在的或缺少的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

(Inherited from DbDataReader)
IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken) IsDBNullAsync(Int32, CancellationToken)

异步获取一个值,该值指示列中是否包含不存在的或缺少的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

(Inherited from DbDataReader)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NextResult() NextResult() NextResult() NextResult()

使 DataTableReader 前进到下一个结果集(如果有)。Advances the DataTableReader to the next result set, if any.

NextResultAsync() NextResultAsync() NextResultAsync() NextResultAsync()

在读取一批语句的结果时,使读取器异步前进到下一个结果。Asynchronously advances the reader to the next result when reading the results of a batch of statements.

(Inherited from DbDataReader)
NextResultAsync(CancellationToken) NextResultAsync(CancellationToken) NextResultAsync(CancellationToken) NextResultAsync(CancellationToken)

在读取一批语句的结果时,使读取器异步前进到下一个结果。Asynchronously advances the reader to the next result when reading the results of a batch of statements.

(Inherited from DbDataReader)
Read() Read() Read() Read()

DataTableReader 前进到下一条记录。Advances the DataTableReader to the next record.

ReadAsync() ReadAsync() ReadAsync() ReadAsync()

使读取器异步前进到结果集中的下一条记录。Asynchronously advances the reader to the next record in a result set.

(Inherited from DbDataReader)
ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken) ReadAsync(CancellationToken)

使读取器异步前进到结果集中的下一条记录。Asynchronously advances the reader to the next record in a result set.

(Inherited from DbDataReader)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

IDataReader.Close() IDataReader.Close() IDataReader.Close() IDataReader.Close()

有关此成员的说明,请参见 Close()For a description of this member, see Close().

(Inherited from DbDataReader)
IDataReader.GetSchemaTable() IDataReader.GetSchemaTable() IDataReader.GetSchemaTable() IDataReader.GetSchemaTable()

有关此成员的说明,请参见 GetSchemaTable()For a description of this member, see GetSchemaTable().

(Inherited from DbDataReader)
IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32) IDataRecord.GetData(Int32)

有关此成员的说明,请参见 GetData(Int32)For a description of this member, see GetData(Int32).

(Inherited from DbDataReader)

扩展方法

CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader) CanGetColumnSchema(DbDataReader)

获取一个值,指示 DbDataReader 是否可以获取列架构。Gets a value that indicates whether a DbDataReader can get a column schema.

GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader) GetColumnSchema(DbDataReader)

获取 DbDataReader 的列架构(DbColumn 集合)。Gets the column schema (DbColumn collection) for a DbDataReader.

GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String) GetBoolean(DbDataReader, String)

获取指定列的布尔值形式的值。Gets the value of the specified column as a Boolean.

GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String) GetByte(DbDataReader, String)

以字节的形式获取指定列的值。Gets the value of the specified column as a byte.

GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32) GetBytes(DbDataReader, String, Int64, Byte[], Int32, Int32)

从指定列中指定索引处开始读取指定字节数,并将其写入缓冲区中从指定位置开始的缓冲区。Reads a specified number of bytes from the specified column starting at a specified index and writes them to a buffer starting at a specified position in the buffer.

GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String) GetChar(DbDataReader, String)

以单个字符的形式获取指定列的值。Gets the value of the specified column as a single character.

GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32) GetChars(DbDataReader, String, Int64, Char[], Int32, Int32)

从指定列中指定索引处开始读取指定字符数,并将其写入从指定位置开始的缓冲区。Reads a specified number of characters from a specified column starting at a specified index, and writes them to a buffer starting at a specified position.

GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String) GetData(DbDataReader, String)

返回所请求列的嵌套数据读取器。Returns a nested data reader for the requested column.

GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String) GetDataTypeName(DbDataReader, String)

获取指定列的数据类型的名称。Gets name of the data type of the specified column.

GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String) GetDateTime(DbDataReader, String)

DateTime 对象的形式获取指定列的值。Gets the value of the specified column as a DateTime object.

GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String) GetDecimal(DbDataReader, String)

获取指定列的 Decimal 形式的值。Gets the value of the specified column as a Decimal.

GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String) GetDouble(DbDataReader, String)

以双精度浮点数字的形式获取指定列的值。Gets the value of the specified column as a double-precision floating point number.

GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String) GetFieldType(DbDataReader, String)

获取指定列的数据类型。Gets the data type of the specified column.

GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String) GetFieldValue<T>(DbDataReader, String)

获取指定列的值作为请求的类型。Gets the value of the specified column as the requested type.

GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken) GetFieldValueAsync<T>(DbDataReader, String, CancellationToken)

异步获取指定列的值作为请求的类型。Asynchronously gets the value of the specified column as the requested type.

GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String) GetFloat(DbDataReader, String)

以单精度浮点数字的形式获取指定列的值。Gets the value of the specified column as a single-precision floating point number.

GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String) GetGuid(DbDataReader, String)

获取指定列的值作为全局唯一标识符 (GUID)。Gets the value of the specified column as a globally unique identifier (GUID).

GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String) GetInt16(DbDataReader, String)

获取指定列的 16 位有符号整数形式的值。Gets the value of the specified column as a 16-bit signed integer.

GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String) GetInt32(DbDataReader, String)

获取指定列的 32 位带符号整数形式的值。Gets the value of the specified column as a 32-bit signed integer.

GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String) GetInt64(DbDataReader, String)

以 64 位有符号整数的形式获取指定列的值。Gets the value of the specified column as a 64-bit signed integer.

GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String) GetProviderSpecificFieldType(DbDataReader, String)

获取指定列的特定于提供程序的类型。Gets the provider-specific type of the specified column.

GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String) GetProviderSpecificValue(DbDataReader, String)

以特定于提供程序的类型实例的形式获取指定列的值。Gets the value of the specified column as an instance of a provider-specific type.

GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String) GetStream(DbDataReader, String)

获取从指定列检索数据的流。Gets a stream to retrieve data from the specified column.

GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String) GetString(DbDataReader, String)

String 实例的形式获取指定列的值。Gets the value of the specified column as an instance of String.

GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String) GetTextReader(DbDataReader, String)

获取文本读取器以从列中检索数据。Gets a text reader to retrieve data from the column.

GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String) GetValue(DbDataReader, String)

Object 实例的形式获取指定列的值。Gets the value of the specified column as an instance of Object.

IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String) IsDBNull(DbDataReader, String)

获取一个值,该值指示列中是否包含不存在或丢失的值。Gets a value that indicates whether the column contains nonexistent or missing values.

IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken) IsDBNullAsync(DbDataReader, String, CancellationToken)

异步获取一个值,该值指示列中是否包含不存在的或缺少的值。Asynchronously gets a value that indicates whether the column contains non-existent or missing values.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于