Used to track relationships between objects in the object context.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Creates a newobject.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns an enumeration of all the related ends managed by the relationship manager.
Serves as the default hash function. (Inherited from Object.)
Gets an EntityCollection<TEntity> of related objects with the specified relationship name and target role name.
Gets the EntityReference<TEntity> for a related object by using the specified combination of relationship name and target role name.
|InitializeRelatedCollection<TTargetEntity>(String^, String^, EntityCollection<TTargetEntity>^)|
Initializes an existing EntityCollection<TEntity> that was created by using the default constructor.
|InitializeRelatedReference<TTargetEntity>(String^, String^, EntityReference<TTargetEntity>^)|
Initializes an existing EntityReference<TEntity> that was created by using the default constructor.
This API supports the product infrastructure and is not intended to be used directly from your code. Used internally to deserialize entity objects along with theinstances.
Called by Object Services to prepare an EntityKey for binary serialization with a serialized relationship.
Returns a string that represents the current object.(Inherited from Object.)
The example in this topic is based on the AdventureWorks Sales Model. The example adds new SalesOrderHeader entities to the Contact entity. Then it gets all related ends from the Contact entity and displays the relationship name, source role name, and target role name for each related end.
Available since 3.5
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.