RelatedEnd::IRelatedEnd::Add Method (Object^)
.NET Framework (current version)
Adds an object to the related end.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- entity
-
Type:
System::Object^
An entity instance to add to the related end.
Implements
IRelatedEnd::Add(Object^)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
Available since 4.0
Show: