Export (0) Print
Expand All

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.

  Name Description
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.

Show:
© 2014 Microsoft