This documentation is archived and is not being maintained.

ObjectStateManager Methods

The ObjectStateManager type exposes the following members.

  NameDescription
Public method ChangeObjectState Changes state of the ObjectStateEntry for a specific object to the specified entityState.
Public method ChangeRelationshipState(Object, Object, String, EntityState) Changes the state of the relationship between two entity objects that is specified based on the two related objects and the name of the navigation property.
Public method ChangeRelationshipState(Object, Object, String, String, EntityState) Changes the state of the relationship between two entity objects that is specified based on the two related objects and the properties of the relationship.
Public method ChangeRelationshipState<TEntity>(TEntity, Object, Expression<Func<TEntity, Object>>, EntityState) Changes the state of the relationship between two entity objects that is specified based on the two related objects and a LINQ expression that defines the navigation property.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectStateEntries Returns a collection of ObjectStateEntry objects for objects or relationships with the given state.
Public method GetObjectStateEntry(EntityKey) Returns an ObjectStateEntry for the object or relationship entry with the specified key.
Public method GetObjectStateEntry(Object) Returns an ObjectStateEntry for the specified object.
Public method GetRelationshipManager Returns the RelationshipManager that is used by the specified object.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetObjectStateEntry(EntityKey, ObjectStateEntry) Tries to retrieve the corresponding ObjectStateEntry for the object or relationship with the specified EntityKey.
Public method TryGetObjectStateEntry(Object, ObjectStateEntry) Tries to retrieve the corresponding ObjectStateEntry for the specified Object.
Public method TryGetRelationshipManager Returns the RelationshipManager that is used by the specified object.
Top
Show: