RelationshipManager Class
Container for the lazily created relationship navigation property objects (collections and refs).
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | Create(IEntityWithRelationships) | Creates a new RelationshipManager object. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetAllRelatedEnds() | Returns an enumeration of all the related ends managed by the relationship manager. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetRelatedCollection<TTargetEntity>(String, String) | Gets an EntityCollection<TEntity> of related objects with the specified relationship name and target role name. |
![]() | GetRelatedEnd(String, String) | Returns either an EntityCollection<TEntity> or EntityReference<TEntity> of the correct type for the specified target role in a relationship. |
![]() | GetRelatedReference<TTargetEntity>(String, String) | Gets the EntityReference<TEntity> for a related object by using the specified combination of relationship name and target role name. |
![]() | GetType() | (Inherited from Object.) |
![]() | InitializeRelatedCollection<TTargetEntity>(String, String, EntityCollection<TTargetEntity>) | Takes an existing EntityCollection that was created with the default constructor and initializes it using the provided relationship and target role names. This method is designed to be used during deserialization only, and will throw an exception if the provided EntityCollection has already been initialized, or if the relationship manager is already attached to a ObjectContext. |
![]() | InitializeRelatedReference<TTargetEntity>(String, String, EntityReference<TTargetEntity>) | Takes an existing EntityReference that was created with the default constructor and initializes it using the provided relationship and target role names. This method is designed to be used during deserialization only, and will throw an exception if the provided EntityReference has already been initialized, if the relationship manager already contains a relationship with this name and target role, or if the relationship manager is already attached to a ObjectContext.W |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | OnDeserialized(StreamingContext) | Used internally to deserialize entity objects along with the RelationshipManager instances. |
![]() | OnSerializing(StreamingContext) | Called by Object Services to prepare an EntityKey for binary serialization with a serialized relationship. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.