ObjectStateEntry ObjectStateEntry ObjectStateEntry ObjectStateEntry Class

Definition

Represents either an entity, entity stub or relationship.

public ref class ObjectStateEntry abstract : System::Data::Objects::DataClasses::IEntityChangeTracker
public abstract class ObjectStateEntry : System.Data.Objects.DataClasses.IEntityChangeTracker
type ObjectStateEntry = class
    interface IEntityChangeTracker
Public MustInherit Class ObjectStateEntry
Implements IEntityChangeTracker
Inheritance
ObjectStateEntryObjectStateEntryObjectStateEntryObjectStateEntry
Implements

Properties

CurrentValues CurrentValues CurrentValues CurrentValues

Gets the current property values of the object or relationship associated with this ObjectStateEntry.

Entity Entity Entity Entity

Gets the entity object.

EntityKey EntityKey EntityKey EntityKey

Gets or sets the entity key.

EntitySet EntitySet EntitySet EntitySet

Gets the EntitySetBase for the object or relationship.

IsRelationship IsRelationship IsRelationship IsRelationship

Gets a value that indicates whether the ObjectStateEntry represents a relationship.

ObjectStateManager ObjectStateManager ObjectStateManager ObjectStateManager

Gets the ObjectStateManager for the ObjectStateEntry.

OriginalValues OriginalValues OriginalValues OriginalValues

Gets the read-only version of original values of the object or relationship.

RelationshipManager RelationshipManager RelationshipManager RelationshipManager

Gets the RelationshipManager instance for the object represented by entry.

State State State State

Gets or sets the state of the ObjectStateEntry.

Methods

AcceptChanges() AcceptChanges() AcceptChanges() AcceptChanges()

Accepts the current values as original values.

ApplyCurrentValues(Object) ApplyCurrentValues(Object) ApplyCurrentValues(Object) ApplyCurrentValues(Object)

Sets the current values of the entry to match the property values of a supplied object.

ApplyOriginalValues(Object) ApplyOriginalValues(Object) ApplyOriginalValues(Object) ApplyOriginalValues(Object)

Sets the original values of the entry to match the property values of a supplied object.

ChangeState(EntityState) ChangeState(EntityState) ChangeState(EntityState) ChangeState(EntityState)

Changes state of the entry to the specified EntityState value.

Delete() Delete() Delete() Delete()

Marks an entity as deleted.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetModifiedProperties() GetModifiedProperties() GetModifiedProperties() GetModifiedProperties()

Returns the names of an object's properties that have changed since the last time SaveChanges() was called.

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

Gets the Type of the current instance.

(Inherited from Object)
GetUpdatableOriginalValues() GetUpdatableOriginalValues() GetUpdatableOriginalValues() GetUpdatableOriginalValues()

Gets the updatable version of original values of the object associated with this ObjectStateEntry.

IsPropertyChanged(String) IsPropertyChanged(String) IsPropertyChanged(String) IsPropertyChanged(String)

Uses DetectChanges to determine whether or not the current value of the property with the given name is different from its original value. Note that this may be different from the property being marked as modified since a property which has not changed can still be marked as modified.

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

Creates a shallow copy of the current Object.

(Inherited from Object)
RejectPropertyChanges(String) RejectPropertyChanges(String) RejectPropertyChanges(String) RejectPropertyChanges(String)

Rejects any changes made to the property with the given name since the property was last loaded, attached, saved, or changes were accepted. The original value of the property is stored and the property will no longer be marked as modified.

SetModified() SetModified() SetModified() SetModified()

Sets the state of the object or relationship to modify.

SetModifiedProperty(String) SetModifiedProperty(String) SetModifiedProperty(String) SetModifiedProperty(String)

Marks the specified property as modified.

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

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IEntityChangeTracker.EntityComplexMemberChanged(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanged(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanged(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanged(String, Object, String)

Notifies the state manager that a complex property has changed.

IEntityChangeTracker.EntityComplexMemberChanging(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanging(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanging(String, Object, String) IEntityChangeTracker.EntityComplexMemberChanging(String, Object, String)

Notifies the state manager that a complex property has a pending change.

IEntityChangeTracker.EntityMemberChanged(String) IEntityChangeTracker.EntityMemberChanged(String) IEntityChangeTracker.EntityMemberChanged(String) IEntityChangeTracker.EntityMemberChanged(String)

Notifies the state manager that a property has changed.

IEntityChangeTracker.EntityMemberChanging(String) IEntityChangeTracker.EntityMemberChanging(String) IEntityChangeTracker.EntityMemberChanging(String) IEntityChangeTracker.EntityMemberChanging(String)

Notifies the state manager that a property has a pending change.

IEntityChangeTracker.EntityState IEntityChangeTracker.EntityState IEntityChangeTracker.EntityState IEntityChangeTracker.EntityState

Gets the EntityState for the ObjectStateEntry.

Applies to