SqlCeDataReader 成员

提供从数据源读取数据行的只进流的方法。无法继承此类。

SqlCeDataReader 类型公开以下成员。

方法

  名称 说明
公共方法 Close 关闭 SqlCeDataReader 对象。 (重写 DbDataReader. . :: . .Close() () () ()。)
公共方法 CreateObjRef (inherited from MarshalByRefObject)
公共方法 Dispose() () () () 基础结构。释放此 SqlCeDataReader 使用的资源。
受保护的方法 Dispose (inherited from DbDataReader)
公共方法 Equals (inherited from Object)
受保护的方法 Finalize 在通过垃圾回收将 SqlCeDataReader 回收之前,释放非托管资源并执行其他清理操作。 (重写 Object. . :: . .Finalize() () () ()。)
公共方法 GetBoolean 获取指定列的布尔值形式的值。 (重写 DbDataReader. . :: . .GetBoolean(Int32)。)
公共方法 GetByte 获取指定列的字节形式的值。 (重写 DbDataReader. . :: . .GetByte(Int32)。)
公共方法 GetBytes 从按指定的列偏移量将字节流作为数组从给定的缓冲区偏移量开始读入缓冲区。 (重写 DbDataReader. . :: . .GetBytes(Int32, Int64, array<Byte> [] () [] [], Int32, Int32)。)
公共方法 GetChar 在 SQL Server Compact 3.5 的 .NET Compact Framework 数据提供程序中不受支持。 (重写 DbDataReader. . :: . .GetChar(Int32)。)
公共方法 GetChars 从指定的列偏移量将字符流作为数组从给定的缓冲区偏移量开始读入缓冲区。 (重写 DbDataReader. . :: . .GetChars(Int32, Int64, array<Char> [] () [] [], Int32, Int32)。)
公共方法 GetData (inherited from DbDataReader)
公共方法 GetDataTypeName 获取源数据类型的名称。 (重写 DbDataReader. . :: . .GetDataTypeName(Int32)。)
公共方法 GetDateTime 获取指定列的 DateTime 对象形式的值。 (重写 DbDataReader. . :: . .GetDateTime(Int32)。)
受保护的方法 GetDbDataReader (inherited from DbDataReader)
公共方法 GetDecimal 获取指定列的 Decimal 对象形式的值。 (重写 DbDataReader. . :: . .GetDecimal(Int32)。)
公共方法 GetDouble 获取指定列的双精度浮点数形式的值。 (重写 DbDataReader. . :: . .GetDouble(Int32)。)
公共方法 GetEnumerator 基础结构。 (重写 DbDataReader. . :: . .GetEnumerator() () () ()。)
公共方法 GetFieldType 获取是对象的数据类型的 Type。 (重写 DbDataReader. . :: . .GetFieldType(Int32)。)
公共方法 GetFloat 获取指定列的单精度浮点数形式的值。 (重写 DbDataReader. . :: . .GetFloat(Int32)。)
公共方法 GetGuid 获取指定列的值作为全局唯一标识符 (GUID)。 (重写 DbDataReader. . :: . .GetGuid(Int32)。)
公共方法 GetHashCode (inherited from Object)
公共方法 GetInt16 获取指定列的 16 位有符号整数形式的值。 (重写 DbDataReader. . :: . .GetInt16(Int32)。)
公共方法 GetInt32 获取指定列的 32 位有符号整数形式的值。 (重写 DbDataReader. . :: . .GetInt32(Int32)。)
公共方法 GetInt64 获取指定列的 64 位有符号整数形式的值。 (重写 DbDataReader. . :: . .GetInt64(Int32)。)
公共方法 GetLifetimeService (inherited from MarshalByRefObject)
公共方法 GetName 获取指定列的名称。 (重写 DbDataReader. . :: . .GetName(Int32)。)
公共方法 GetOrdinal 在给定列名称的情况下获取列序号。 (重写 DbDataReader. . :: . .GetOrdinal(String)。)
公共方法 GetProviderSpecificFieldType 获取一个 Object,它表示基础提供程序特定的字段类型。 (重写 DbDataReader. . :: . .GetProviderSpecificFieldType(Int32)。)
公共方法 GetProviderSpecificValue (inherited from DbDataReader)
公共方法 GetProviderSpecificValues (inherited from DbDataReader)
公共方法 GetSchemaTable 返回一个 DataTable,它描述 SqlCeDataReader 的列元数据。 (重写 DbDataReader. . :: . .GetSchemaTable() () () ()。)
公共方法 GetSqlBinary 获取指定列的 SqlBinary 形式的值。
公共方法 GetSqlBoolean 获取指定列的 SqlBoolean 形式的值。
公共方法 GetSqlByte 获取指定列的 SqlByte 形式的值。
公共方法 GetSqlDateTime 获取指定列的 SqlDateTime 形式的值。
公共方法 GetSqlDecimal 获取指定列的 SqlDecimal 形式的值。
公共方法 GetSqlDouble 获取指定列的 SqlDouble 形式的值。
公共方法 GetSqlGuid 获取指定列的 SqlGuid 形式的值。
公共方法 GetSqlInt16 获取指定列的 SqlInt16 形式的值。
公共方法 GetSqlInt32 获取指定列的 SqlInt32 形式的值。
公共方法 GetSqlInt64 获取指定列的 SqlInt64 形式的值。
公共方法 GetSqlMoney 获取指定列的 SqlMoney 形式的值。
公共方法 GetSqlSingle 获取指定列的 SqlSingle 形式的值。
公共方法 GetSqlString 获取指定列的 SqlString 形式的值。
公共方法 GetString 获取指定列的字符串形式的值。 (重写 DbDataReader. . :: . .GetString(Int32)。)
公共方法 GetType (inherited from Object)
公共方法 GetValue 获取以本机格式表示的指定序号处的列的值。 (重写 DbDataReader. . :: . .GetValue(Int32)。)
公共方法 GetValues 获取当前行中的所有属性列。 (重写 DbDataReader. . :: . .GetValues(array<Object> [] () [] [])。)
公共方法 InitializeLifetimeService (inherited from MarshalByRefObject)
受保护的方法 IsCommandBehavior
公共方法 IsDBNull 获取一个值,用以表示列中是否包含不存在的或已丢失的值。 (重写 DbDataReader. . :: . .IsDBNull(Int32)。)
受保护的方法 MemberwiseClone (inherited from Object)
受保护的方法 MemberwiseClone (inherited from MarshalByRefObject)
公共方法 NextResult 在 SQL Server Compact 3.5 的 .NET Compact Framework 数据提供程序中不受支持。 (重写 DbDataReader. . :: . .NextResult() () () ()。)
受保护的方法 OnMove 基础结构。
公共方法 Read SqlCeDataReader 移到下一个记录。 (重写 DbDataReader. . :: . .Read() () () ()。)
公共方法 Seek SqlCeDataReader 放置在包含与指定参数匹配的索引值的记录上。
公共方法 ToString (inherited from Object)

页首

属性

  名称 说明
公共属性 Depth 获取一个值,该值指示当前行的嵌套深度。 (重写 DbDataReader. . :: . .Depth。)
公共属性 FieldCount 获取查询表的 SELECT 子句中的列数。 (重写 DbDataReader. . :: . .FieldCount。)
公共属性 HasRows 获取一个值,该值指示 SqlCeDataReader 是否包含一行或多行 (重写 DbDataReader. . :: . .HasRows。)
公共属性 HiddenFieldCount 基础结构。
公共属性 IsClosed 指示是否可关闭数据读取器。 (重写 DbDataReader. . :: . .IsClosed。)
公共属性 Item[ ( [ ( Int32] ) ] ) 在给定列序号的情况下,获取指定列的以本机格式表示的值。 (重写 DbDataReader. . :: . .Item[ ( [ ( Int32] ) ] )。)
公共属性 Item[ ( [ ( String] ) ] ) 在给定列名称的情况下,获取指定列的以本机格式表示的值。 (重写 DbDataReader. . :: . .Item[ ( [ ( String] ) ] )。)
公共属性 RecordsAffected 通过执行 SQL 语句获取更改、插入或删除的行数。 (重写 DbDataReader. . :: . .RecordsAffected。)
公共属性 VisibleFieldCount (inherited from DbDataReader)

页首

显式接口实现

  名称 说明
显式接口实现专用方法 IDataRecord. . :: . .GetData (inherited from DbDataReader)

页首

请参阅

参考

SqlCeDataReader类

System.Data.SqlServerCe 命名空间