CurrentValueRecord CurrentValueRecord CurrentValueRecord CurrentValueRecord Class

Definition

Provides access to the current values of object data.

public ref class CurrentValueRecord abstract : System::Data::Objects::DbUpdatableDataRecord
public abstract class CurrentValueRecord : System.Data.Objects.DbUpdatableDataRecord
type CurrentValueRecord = class
    inherit DbUpdatableDataRecord
Public MustInherit Class CurrentValueRecord
Inherits DbUpdatableDataRecord
Inheritance
CurrentValueRecordCurrentValueRecordCurrentValueRecordCurrentValueRecord

Remarks

A CurrentValueRecord object contains a DbDataRecord view of the object or relationship tracked by an ObjectStateEntry.

CurrentValueRecord implements IExtendedDataRecord, which provides read-only access to the current values of entities, relationships, and metadata.

Implements methods that allow updates to the current values.

Properties

DataRecordInfo DataRecordInfo DataRecordInfo DataRecordInfo

Returns data record information.

FieldCount FieldCount FieldCount FieldCount

Returns the number of fields in the record.

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

Returns a value with the given field ordinal.

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

Gets a value with the given field name.

Methods

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)

Retrieves the field value as a Boolean.

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

Retrieves the field value 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)

Retrieves the field value as a byte array.

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

Retrieves the field value as a char.

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

Retrieves the field value as a char array.

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

Not currently supported.

(Inherited from DbDataRecord)
GetDataReader(Int32) GetDataReader(Int32) GetDataReader(Int32) GetDataReader(Int32)

Throws a NotSupportedException exception in all cases.

GetDataRecord(Int32) GetDataRecord(Int32) GetDataRecord(Int32) GetDataRecord(Int32)

Retrieves a field value as a DbDataRecord.

GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32) GetDataTypeName(Int32)

Retrieves the name of the field data type.

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

Retrieves the field value as a DateTime.

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

Throws a NotSupportedException exception in all cases.

GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32) GetDecimal(Int32)

Retrieves the field value as a decimal.

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

Retrieves the field value as a double.

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

Retrieves the type of a field.

GetFloat(Int32) GetFloat(Int32) GetFloat(Int32) GetFloat(Int32)

Retrieves the field value as a float.

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

Retrieves the field value as a Guid.

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

Serves as the default hash function.

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

Retrieves the field value as an Int16.

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

Retrieves the field value as an Int32.

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

Retrieves the field value as an Int64.

GetName(Int32) GetName(Int32) GetName(Int32) GetName(Int32)

Retrieves the name of a field.

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

Retrieves the ordinal of a field by name.

GetRecordValue(Int32) GetRecordValue(Int32) GetRecordValue(Int32) GetRecordValue(Int32)

Retrieves the value of a field.

GetString(Int32) GetString(Int32) GetString(Int32) GetString(Int32)

Retrieves the field value as a string.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

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

Retrieves the value of a field.

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

Retrieves all field values in the record into an object array.

IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32) IsDBNull(Int32)

Returns a value that indicates whether the specified field is set to null.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean) SetBoolean(Int32, Boolean)

Sets the value of a field in a record.

SetByte(Int32, Byte) SetByte(Int32, Byte) SetByte(Int32, Byte) SetByte(Int32, Byte)

Sets the value of a field in a record.

SetChar(Int32, Char) SetChar(Int32, Char) SetChar(Int32, Char) SetChar(Int32, Char)

Sets the value of a field in a record.

SetDataRecord(Int32, IDataRecord) SetDataRecord(Int32, IDataRecord) SetDataRecord(Int32, IDataRecord) SetDataRecord(Int32, IDataRecord)

Sets the value of a field in a record.

SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime) SetDateTime(Int32, DateTime)

Sets the value of a field in a record.

SetDBNull(Int32) SetDBNull(Int32) SetDBNull(Int32) SetDBNull(Int32)

Sets a field to the DBNull value.

SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal) SetDecimal(Int32, Decimal)

Sets the value of a field in a record.

SetDouble(Int32, Double) SetDouble(Int32, Double) SetDouble(Int32, Double) SetDouble(Int32, Double)

Sets the value of a field in a record.

SetFloat(Int32, Single) SetFloat(Int32, Single) SetFloat(Int32, Single) SetFloat(Int32, Single)

Sets the value of a field in a record.

SetGuid(Int32, Guid) SetGuid(Int32, Guid) SetGuid(Int32, Guid) SetGuid(Int32, Guid)

Sets the value of a field in a record.

SetInt16(Int32, Int16) SetInt16(Int32, Int16) SetInt16(Int32, Int16) SetInt16(Int32, Int16)

Sets the value of a field in a record.

SetInt32(Int32, Int32) SetInt32(Int32, Int32) SetInt32(Int32, Int32) SetInt32(Int32, Int32)

Sets the value of a field in a record.

SetInt64(Int32, Int64) SetInt64(Int32, Int64) SetInt64(Int32, Int64) SetInt64(Int32, Int64)

Sets the value of a field in a record.

SetRecordValue(Int32, Object) SetRecordValue(Int32, Object) SetRecordValue(Int32, Object) SetRecordValue(Int32, Object)

Sets the value of a field in a record.

SetString(Int32, String) SetString(Int32, String) SetString(Int32, String) SetString(Int32, String)

Sets the value of a field in a record.

SetValue(Int32, Object) SetValue(Int32, Object) SetValue(Int32, Object) SetValue(Int32, Object)

Sets the value of a field in a record.

SetValues(Object[]) SetValues(Object[]) SetValues(Object[]) SetValues(Object[])

Sets field values in a record.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes() ICustomTypeDescriptor.GetAttributes()

Returns a collection of custom attributes for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName() ICustomTypeDescriptor.GetClassName()

Returns the class name of this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName() ICustomTypeDescriptor.GetComponentName()

Returns the name of this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter() ICustomTypeDescriptor.GetConverter()

Returns a type converter for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent() ICustomTypeDescriptor.GetDefaultEvent()

Returns the default event for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty() ICustomTypeDescriptor.GetDefaultProperty()

Returns the default property for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type) ICustomTypeDescriptor.GetEditor(Type)

Returns an editor of the specified type for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents() ICustomTypeDescriptor.GetEvents()

Returns the events for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[]) ICustomTypeDescriptor.GetEvents(Attribute[])

Returns the events for this instance of a component using the specified attribute array as a filter.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties() ICustomTypeDescriptor.GetProperties()

Returns the properties for this instance of a component.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[]) ICustomTypeDescriptor.GetProperties(Attribute[])

Returns the properties for this instance of a component using the attribute array as a filter.

(Inherited from DbDataRecord)
ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor)

Returns an object that contains the property described by the specified property descriptor.

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

Throws a NotSupportedException exception in all cases.

Applies to