RelatedEnd.IRelatedEnd.Attach RelatedEnd.IRelatedEnd.Attach RelatedEnd.IRelatedEnd.Attach Method

Definition

Attaches an object at the related end.

Overloads

IRelatedEnd.Attach(IEntityWithRelationships) IRelatedEnd.Attach(IEntityWithRelationships) IRelatedEnd.Attach(IEntityWithRelationships)

Attaches an object at the related end.

IRelatedEnd.Attach(Object) IRelatedEnd.Attach(Object) IRelatedEnd.Attach(Object)

Attaches an object to the related end.

IRelatedEnd.Attach(IEntityWithRelationships) IRelatedEnd.Attach(IEntityWithRelationships) IRelatedEnd.Attach(IEntityWithRelationships)

Attaches an object at the related end.

 virtual void System.Data.Objects.DataClasses.IRelatedEnd.Attach(System::Data::Objects::DataClasses::IEntityWithRelationships ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Attach;
void IRelatedEnd.Attach (System.Data.Objects.DataClasses.IEntityWithRelationships entity);
Sub Attach (entity As IEntityWithRelationships) Implements IRelatedEnd.Attach

Parameters

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the RelatedEnd instance is cast to an IRelatedEnd interface.

The IRelatedEnd.Attach method is only maintained for compatibility with previous versions of the .NET Framework.

IRelatedEnd.Attach(Object) IRelatedEnd.Attach(Object) IRelatedEnd.Attach(Object)

Attaches an object to the related end.

 virtual void System.Data.Objects.DataClasses.IRelatedEnd.Attach(System::Object ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Attach;
void IRelatedEnd.Attach (object entity);
Sub Attach (entity As Object) Implements IRelatedEnd.Attach

Parameters

entity
Object Object Object

An entity instance to attach to the related end.

Implements

Remarks

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.

Applies to