ObjectStateManager::ChangeRelationshipState Method
.NET Framework (current version)
Changes the state of the specified relationship between two entity objects.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
| Name | Description | |
|---|---|---|
![]() | 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. |
![]() | 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. |
![]() | 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. |
This method is not supported for relationships based on a foreign key association.
Show:
