通过


CurrentValueRecord 类

定义

提供对对象数据的当前值的访问权限。

public ref class CurrentValueRecord abstract : System::Data::Common::DbDataRecord, System::Data::IExtendedDataRecord
public ref class CurrentValueRecord abstract : System::Data::Objects::DbUpdatableDataRecord
public abstract class CurrentValueRecord : System.Data.Common.DbDataRecord, System.Data.IExtendedDataRecord
public abstract class CurrentValueRecord : System.Data.Objects.DbUpdatableDataRecord
type CurrentValueRecord = class
    inherit DbDataRecord
    interface IExtendedDataRecord
    interface IDataRecord
type CurrentValueRecord = class
    inherit DbUpdatableDataRecord
Public MustInherit Class CurrentValueRecord
Inherits DbDataRecord
Implements IExtendedDataRecord
Public MustInherit Class CurrentValueRecord
Inherits DbUpdatableDataRecord
继承
CurrentValueRecord
继承
实现

注解

对象CurrentValueRecord包含由一个DbDataRecordObjectStateEntry对象或关系跟踪的视图。

CurrentValueRecord IExtendedDataRecord实现,它提供对实体、关系和元数据的当前值的只读访问权限。

实现允许更新当前值的方法。

属性

名称 说明
DataRecordInfo

返回数据记录信息。

DataRecordInfo

获取数据记录信息。

(继承自 DbUpdatableDataRecord)
FieldCount

返回记录中的字段数。

FieldCount

获取记录中的字段数。

(继承自 DbUpdatableDataRecord)
Item[Int32]

返回具有给定字段序号的值。

Item[Int32]

返回具有给定字段序号的值。

(继承自 DbUpdatableDataRecord)
Item[String]

获取具有给定字段名称的值。

Item[String]

获取具有给定字段名称的值。

(继承自 DbUpdatableDataRecord)

方法

名称 说明
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetBoolean(Int32)

检索字段值作为布尔值。

GetBoolean(Int32)

检索字段值作为布尔值。

(继承自 DbUpdatableDataRecord)
GetByte(Int32)

以字节的形式检索字段值。

GetByte(Int32)

检索字段值作为 .byte

(继承自 DbUpdatableDataRecord)
GetBytes(Int32, Int64, Byte[], Int32, Int32)

以字节数组的形式检索字段值。

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

检索字段值作为 byte 数组。

(继承自 DbUpdatableDataRecord)
GetChar(Int32)

以字符的形式检索字段值。

GetChar(Int32)

检索字段值作为 .char

(继承自 DbUpdatableDataRecord)
GetChars(Int32, Int64, Char[], Int32, Int32)

以字符数组的形式检索字段值。

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

检索字段值作为 char 数组。

(继承自 DbUpdatableDataRecord)
GetData(Int32)

当前不支持。

(继承自 DbDataRecord)
GetDataReader(Int32)

NotSupportedException在所有情况下都引发异常。

GetDataReader(Int32)

检索字段值作为 .DbDataReader

(继承自 DbUpdatableDataRecord)
GetDataRecord(Int32)

检索字段值作为 .DbDataRecord

GetDataRecord(Int32)

检索字段值作为 .DbDataRecord

(继承自 DbUpdatableDataRecord)
GetDataTypeName(Int32)

检索字段数据类型的名称。

GetDataTypeName(Int32)

检索字段数据类型的名称。

(继承自 DbUpdatableDataRecord)
GetDateTime(Int32)

检索字段值作为 .DateTime

GetDateTime(Int32)

检索字段值作为 .DateTime

(继承自 DbUpdatableDataRecord)
GetDbDataReader(Int32)

NotSupportedException在所有情况下都引发异常。

GetDbDataReader(Int32)

检索字段值作为 .DbDataReader

(继承自 DbUpdatableDataRecord)
GetDecimal(Int32)

以十进制形式检索字段值。

GetDecimal(Int32)

检索字段值作为 .decimal

(继承自 DbUpdatableDataRecord)
GetDouble(Int32)

以双精度检索字段值。

GetDouble(Int32)

检索字段值作为 .double

(继承自 DbUpdatableDataRecord)
GetFieldType(Int32)

检索字段的类型。

GetFieldType(Int32)

检索字段的类型。

(继承自 DbUpdatableDataRecord)
GetFloat(Int32)

以浮点数的形式检索字段值。

GetFloat(Int32)

检索字段值作为 .float

(继承自 DbUpdatableDataRecord)
GetGuid(Int32)

检索字段值作为 .Guid

GetGuid(Int32)

检索字段值作为 .Guid

(继承自 DbUpdatableDataRecord)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetInt16(Int32)

检索字段值作为 .Int16

GetInt16(Int32)

检索字段值作为 .Int16

(继承自 DbUpdatableDataRecord)
GetInt32(Int32)

检索字段值作为 .Int32

GetInt32(Int32)

检索字段值作为 .Int32

(继承自 DbUpdatableDataRecord)
GetInt64(Int32)

检索字段值作为 .Int64

GetInt64(Int32)

检索字段值作为 .Int64

(继承自 DbUpdatableDataRecord)
GetName(Int32)

检索字段的名称。

GetName(Int32)

检索字段的名称。

(继承自 DbUpdatableDataRecord)
GetOrdinal(String)

按名称检索字段的序号。

GetOrdinal(String)

使用字段的名称检索字段的序号。

(继承自 DbUpdatableDataRecord)
GetRecordValue(Int32)

检索字段的值。

GetRecordValue(Int32)

检索字段的值。

(继承自 DbUpdatableDataRecord)
GetString(Int32)

以字符串的形式检索字段值。

GetString(Int32)

以字符串的形式检索字段值。

(继承自 DbUpdatableDataRecord)
GetType()

获取当前实例的 Type

(继承自 Object)
GetValue(Int32)

检索字段的值。

GetValue(Int32)

检索字段的值。

(继承自 DbUpdatableDataRecord)
GetValues(Object[])

将记录中的所有字段值检索到对象数组中。

GetValues(Object[])

使用当前记录的字段值填充对象的数组。

(继承自 DbUpdatableDataRecord)
IsDBNull(Int32)

返回一个值,该值指示指定的字段是否设置为 null

IsDBNull(Int32)

返回指定的字段是否设置为 DBNull

(继承自 DbUpdatableDataRecord)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
SetBoolean(Int32, Boolean)

设置记录中字段的值。

SetBoolean(Int32, Boolean)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetByte(Int32, Byte)

设置记录中字段的值。

SetByte(Int32, Byte)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetChar(Int32, Char)

设置记录中字段的值。

SetChar(Int32, Char)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetDataRecord(Int32, IDataRecord)

设置记录中字段的值。

SetDataRecord(Int32, IDataRecord)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetDateTime(Int32, DateTime)

设置记录中字段的值。

SetDateTime(Int32, DateTime)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetDBNull(Int32)

将字段设置为 DBNull 值。

SetDBNull(Int32)

将字段设置为 DBNull 值。

(继承自 DbUpdatableDataRecord)
SetDecimal(Int32, Decimal)

设置记录中字段的值。

SetDecimal(Int32, Decimal)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetDouble(Int32, Double)

设置记录中字段的值。

SetDouble(Int32, Double)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetFloat(Int32, Single)

设置记录中字段的值。

SetFloat(Int32, Single)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetGuid(Int32, Guid)

设置记录中字段的值。

SetGuid(Int32, Guid)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetInt16(Int32, Int16)

设置记录中字段的值。

SetInt16(Int32, Int16)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetInt32(Int32, Int32)

设置记录中字段的值。

SetInt32(Int32, Int32)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetInt64(Int32, Int64)

设置记录中字段的值。

SetInt64(Int32, Int64)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetRecordValue(Int32, Object)

设置记录中字段的值。

SetRecordValue(Int32, Object)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetString(Int32, String)

设置记录中字段的值。

SetString(Int32, String)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetValue(Int32, Object)

设置记录中字段的值。

SetValue(Int32, Object)

设置记录中字段的值。

(继承自 DbUpdatableDataRecord)
SetValues(Object[])

设置记录中的字段值。

SetValues(Object[])

设置记录中的字段值。

(继承自 DbUpdatableDataRecord)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICustomTypeDescriptor.GetAttributes()

返回此组件的实例的自定义属性集合。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetClassName()

返回组件的此实例的类名。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetComponentName()

返回组件的此实例的名称。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetConverter()

返回组件的此实例的类型转换器。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetDefaultEvent()

返回此组件实例的默认事件。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetDefaultProperty()

返回组件的此实例的默认属性。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetEditor(Type)

返回此组件的实例的指定类型的编辑器。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetEvents()

返回组件的此实例的事件。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetEvents(Attribute[])

使用指定的属性数组作为筛选器返回组件的此实例的事件。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetProperties()

返回组件的此实例的属性。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetProperties(Attribute[])

使用属性数组作为筛选器返回组件的此实例的属性。

(继承自 DbDataRecord)
ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

返回一个对象,该对象包含指定属性描述符描述符描述的属性。

(继承自 DbDataRecord)
IDataRecord.GetData(Int32)

NotSupportedException在所有情况下都引发异常。

IDataRecord.GetData(Int32)

检索字段值作为 .IDataReader

(继承自 DbUpdatableDataRecord)

适用于