This documentation is archived and is not being maintained.
RelatedEnd Class
Visual Studio 2010
Base class that implements common functionality for a related end.
System::Object
System.Data.Objects.DataClasses::RelatedEnd
System.Data.Objects.DataClasses::EntityCollection<TEntity>
System.Data.Objects.DataClasses::EntityReference
System.Data.Objects.DataClasses::RelatedEnd
System.Data.Objects.DataClasses::EntityCollection<TEntity>
System.Data.Objects.DataClasses::EntityReference
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The RelatedEnd type exposes the following members.
| 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 | Returns 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 a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | 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 | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDeserialized | Infrastructure. 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 | |
|---|---|---|
![]() ![]() | 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
