EntityReference(TEntity) Methods

EntityReference<TEntity> Methods

.NET Framework (current version)
 

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

NameDescription
System_CAPS_pubmethodAttach(TEntity)

Creates a many-to-one or one-to-one relationship between two objects in the object context.

System_CAPS_pubmethodCreateSourceQuery()

Creates an equivalent object query that returns the related object.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an IEnumerator that iterates through the collection of related objects.(Inherited from RelatedEnd.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoad()

When overridden in a derived class, loads the related object or objects into the related end with the default merge option.(Inherited from RelatedEnd.)

System_CAPS_pubmethodLoad(MergeOption)

Loads the related object for this EntityReference<TEntity> with the specified merge option.(Overrides RelatedEnd.Load(MergeOption).)

System_CAPS_pubmethodOnDeserialized(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.(Inherited from RelatedEnd.)

System_CAPS_pubmethodOnRefDeserialized(StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. This method is used internally to serialize related entity objects.

System_CAPS_pubmethodOnSerializing(StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. This method is used internally to serialize related entity objects.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Add(IEntityWithRelationships)

Adds an object to the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Add(Object)

Adds an object to the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Attach(IEntityWithRelationships)

Attaches an object at the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Attach(Object)

Attaches an object to the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.CreateSourceQuery()

Returns an IEnumerable that represents the objects that belong to the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Remove(IEntityWithRelationships)

Removes an object from the collection at the related end.(Inherited from RelatedEnd.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIRelatedEnd.Remove(Object)

Removes an object from the related end if the object is part of the related end.(Inherited from RelatedEnd.)

Return to top
Show:
© 2016 Microsoft