CurrentValueRecord 类

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

当前赋给实体的各个属性的值。

继承层次结构

System.Object
  System.Data.Common.DbDataRecord
    System.Data.Entity.Core.Objects.DbUpdatableDataRecord
      System.Data.Entity.Core.Objects.CurrentValueRecord

命名空间:  System.Data.Entity.Core.Objects
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public MustInherit Class CurrentValueRecord _
    Inherits DbUpdatableDataRecord
用法
Dim instance As CurrentValueRecord
public abstract class CurrentValueRecord : DbUpdatableDataRecord
public ref class CurrentValueRecord abstract : public DbUpdatableDataRecord
[<AbstractClassAttribute>]
type CurrentValueRecord =  
    class 
        inherit DbUpdatableDataRecord 
    end
public abstract class CurrentValueRecord extends DbUpdatableDataRecord

CurrentValueRecord 类型公开以下成员。

属性

  名称 描述
公共属性 DataRecordInfo 获取数据记录信息。 (继承自 DbUpdatableDataRecord。)
公共属性 FieldCount 获取记录中的字段数。 (继承自 DbUpdatableDataRecord。)
公共属性 Item[Int32] 返回具有给定字段序号的值。 (继承自 DbUpdatableDataRecord。)
公共属性 Item[String] 获取具有给定字段名称的值。 (继承自 DbUpdatableDataRecord。)

顶部

方法

  名称 描述
公共方法 Equals (继承自 Object。)
受保护的方法 Finalize (继承自 Object。)
公共方法 GetBoolean 检索布尔值形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetByte 检索字节形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetBytes 检索字节数组形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetChar 检索字符形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetChars 检索字符数组形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetData (继承自 DbDataRecord。)
公共方法 GetDataReader 检索 DbDataReader 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetDataRecord 检索 DbDataRecord 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetDataTypeName 检索字段数据类型的名称。 (继承自 DbUpdatableDataRecord。)
公共方法 GetDateTime 检索 DateTime 形式的字段值。 (继承自 DbUpdatableDataRecord。)
受保护的方法 GetDbDataReader 检索 DbDataReader 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetDecimal 检索十进制形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetDouble 检索双精度值形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetFieldType 检索字段的类型。 (继承自 DbUpdatableDataRecord。)
公共方法 GetFloat 检索浮点形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetGuid 检索 Guid 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetHashCode (继承自 Object。)
公共方法 GetInt16 检索 Int16 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetInt32 检索 Int32 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetInt64 检索 Int64 形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetName 检索字段的名称。 (继承自 DbUpdatableDataRecord。)
公共方法 GetOrdinal 使用字段名检索字段的序号。 (继承自 DbUpdatableDataRecord。)
受保护的方法 GetRecordValue 检索字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetString 检索字符串形式的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetType (继承自 Object。)
公共方法 GetValue 检索字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 GetValues 使用当前记录的字段值来填充对象数组。 (继承自 DbUpdatableDataRecord。)
公共方法 IsDBNull 返回指定字段是否设置为 DBNull。 (继承自 DbUpdatableDataRecord。)
受保护的方法 MemberwiseClone (继承自 Object。)
公共方法 SetBoolean 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetByte 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetChar 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetDataRecord 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetDateTime 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetDBNull 将一个字段设置为 DBNull 值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetDecimal 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetDouble 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetFloat 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetGuid 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetInt16 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetInt32 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetInt64 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
受保护的方法 SetRecordValue 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetString 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetValue 设置记录中一个字段的值。 (继承自 DbUpdatableDataRecord。)
公共方法 SetValues 设置记录中的字段值。 (继承自 DbUpdatableDataRecord。)
公共方法 ToString (继承自 Object。)

顶部

显式接口实现  

  名称 描述
显式接口实现私有方法 IDataRecord.GetData 检索 IDataReader 形式的字段值。 (继承自 DbUpdatableDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetAttributes (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetClassName (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetComponentName (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetConverter (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetDefaultEvent (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetDefaultProperty (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetEditor (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetEvents() (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetEvents(Attribute[]) (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetProperties() (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetProperties(Attribute[]) (继承自 DbDataRecord。)
显式接口实现私有方法 ICustomTypeDescriptor.GetPropertyOwner (继承自 DbDataRecord。)

顶部

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

System.Data.Entity.Core.Objects 命名空间