IRelatedEnd.Attach Method

 

Attaches an entity to the related end.

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

NameDescription
System_CAPS_pubmethodAttach(IEntityWithRelationships)

Defines a relationship between two attached objects.

System_CAPS_pubmethodAttach(Object)

Defines a relationship between two attached objects.


IRelatedEnd.Attach Method (IEntityWithRelationships)

Defines a relationship between two attached objects.

void Attach(
	IEntityWithRelationships entity
)

Parameters

entity
Type: System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships

The object being attached. entity must implement IEntityWithRelationships .


IRelatedEnd.Attach Method (Object)

Defines a relationship between two attached objects.

void Attach(
	object entity
)

Parameters

entity
Type: System.Object

The object being attached.