RelatedEnd::IRelatedEnd::Attach Method (Object^)
.NET Framework (current version)
Attaches an object to the related end.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- entity
-
Type:
System::Object^
An entity instance to attach to the related end.
Implements
IRelatedEnd::Attach(Object^)If the related end already has some entities attached to it, the existing entities will be merged with the new entity. The new entity is not assumed to be the complete set of related entity objects.
The source entity object and all entity objects passed in must be in an Unchanged or Modified state. Deleted elements are allowed only when the state manager is already tracking the relationship instance.
.NET Framework
Available since 4.0
Available since 4.0
Show: