This documentation is archived and is not being maintained.

EntityReference Methods

The EntityReference type exposes the following members.

  NameDescription
Protected method Attach<TEntity> Defines a relationship between two attached objects. (Inherited from RelatedEnd.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an IEnumerator that iterates through the collection of related objects. (Inherited from RelatedEnd.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Load Overloaded. When overridden in a derived class, loads the related object or objects into the local collection or reference.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Merge<TEntity> Merges related entities into the local EntityCollection<TEntity>. (Inherited from RelatedEnd.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method ValidateEntityForAttach<TEntity> Determines whether an object can be attached to the local collection or reference. (Inherited from RelatedEnd.)
Protected method ValidateLoad<TEntity> Ensures that the related object or objects can be successfully loaded into the local collection or reference. (Inherited from RelatedEnd.)
Protected method ValidateOwnerForAttach Ensures that the object to which the related end belongs supports an attach operation. (Inherited from RelatedEnd.)
Top

  NameDescription
Explicit interface implemetation Private method IRelatedEnd.Add Adds an object to the related end. (Inherited from RelatedEnd.)
Explicit interface implemetation Private method IRelatedEnd.Attach Attaches an object at the related end. (Inherited from RelatedEnd.)
Explicit interface implemetation Private method IRelatedEnd.CreateSourceQuery Returns an IEnumerable that represents the objects that belong to the related end. (Inherited from RelatedEnd.)
Explicit interface implemetation Private method IRelatedEnd.Remove Removes an object from the collection at the related end. (Inherited from RelatedEnd.)
Top
Show: