This topic has not yet been rated - Rate this topic

ObjectStateManager.ChangeRelationshipState Method

Changes the state of the specified relationship between two entity objects.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
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 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.
Top

This method is not supported for relationships based on a foreign key association.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.