RelatedEnd Class
Represents a base class that implements common functionality for a related end.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
System.Data.Objects.DataClasses::RelatedEnd
System.Data.Objects.DataClasses::EntityCollection<TEntity>
System.Data.Objects.DataClasses::EntityReference
| Name | Description | |
|---|---|---|
![]() | IsLoaded | Gets a value that indicates whether all related objects have been loaded. |
![]() | RelationshipName | Gets the name of the relationship in which this related end participates. |
![]() | RelationshipSet | Gets a reference to the metadata for the related end. |
![]() | SourceRoleName | Gets the role name at the source end of the relationship. |
![]() | TargetRoleName | Gets the role name at the target end of the relationship. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetEnumerator() | Returns an IEnumerator that iterates through the collection of related objects. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | Load() | When overridden in a derived class, loads the related object or objects into the related end with the default merge option. |
![]() | Load(MergeOption) | When overridden in a derived class, loads an object or objects from the related end with the specified merge option. |
![]() | MemberwiseClone() | |
![]() | OnDeserialized(StreamingContext) | 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 the RelationshipManager instances. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AssociationChanged | Occurs when a change is made to a related end. |
| Name | Description | |
|---|---|---|
![]() ![]() | IRelatedEnd::Add(IEntityWithRelationships^) | Adds an object to the related end. |
![]() ![]() | IRelatedEnd::Add(Object^) | Adds an object to the related end. |
![]() ![]() | IRelatedEnd::Attach(IEntityWithRelationships^) | Attaches an object at the related end. |
![]() ![]() | IRelatedEnd::Attach(Object^) | Attaches an object to the related end. |
![]() ![]() | IRelatedEnd::CreateSourceQuery() | Returns an IEnumerable that represents the objects that belong to the related end. |
![]() ![]() | IRelatedEnd::Remove(IEntityWithRelationships^) | Removes an object from the collection at the related end. |
![]() ![]() | IRelatedEnd::Remove(Object^) | Removes an object from the related end if the object is part of the related end. |
RelatedEnd is the base class for the EntityCollection<TEntity> class and the EntityReference<TEntity> class.
The RelatedEnd class implements functionality that is shared between the EntityCollection<TEntity> and EntityReference<TEntity> classes.
This class is not intended to be used directly in your code.
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.





