RelatedEnd.IRelatedEnd.Add Method (Object)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds an object to the related end.

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

void IRelatedEnd.Add(
	object entity
)

Parameters

entity
Type: System.Object

An entity instance to add to the related end.

If the source entity object is attached to a cache, then all the connected ends are added to the object cache and their corresponding relationships are also added to the ObjectStateManager. The RelatedEnd of the relationship is also fixed.

.NET Framework
Available since 4.0
Return to top
Show: