Export (0) Print
Expand All

RelatedEnd Class

Represents a base class that implements common functionality for a related end.

Namespace:  System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[SerializableAttribute]
[DataContractAttribute]
public abstract class RelatedEnd : IRelatedEnd

The RelatedEnd type exposes the following members.

  NameDescription
Public propertyIsLoadedGets a value that indicates whether all related objects have been loaded.
Public propertyRelationshipNameGets the name of the relationship in which this related end participates.
Public propertyRelationshipSetGets a reference to the metadata for the related end.
Public propertySourceRoleNameGets the role name at the source end of the relationship.
Public propertyTargetRoleNameGets the role name at the target end of the relationship.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an IEnumerator that iterates through the collection of related objects.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLoad()When overridden in a derived class, loads the related object or objects into the related end with the default merge option.
Public methodLoad(MergeOption)When overridden in a derived class, loads an object or objects from the related end with the specified merge option.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnDeserializedInfrastructure. Used internally to deserialize entity objects along with the RelationshipManager instances.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventAssociationChangedOccurs when a change is made to a related end.
Top

  NameDescription
Explicit interface implemetationPrivate methodIRelatedEnd.Add(IEntityWithRelationships)Adds an object to the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.Add(Object)Adds an object to the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.Attach(IEntityWithRelationships)Attaches an object at the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.Attach(Object)Attaches an object to the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.CreateSourceQueryReturns an IEnumerable that represents the objects that belong to the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.Remove(IEntityWithRelationships)Removes an object from the collection at the related end.
Explicit interface implemetationPrivate methodIRelatedEnd.Remove(Object)Removes an object from the related end if the object is part of the related end.
Top

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft