IRelatedEnd.Attach Method
Attaches an entity to the related end.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Attach(IEntityWithRelationships) | Defines a relationship between two attached objects. |
![]() | Attach(Object) | Defines a relationship between two attached objects. |
IRelatedEnd.Attach Method (IEntityWithRelationships)
Defines a relationship between two attached objects.
Parameters
- entity
-
Type:
System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships
The object being attached. entity must implement IEntityWithRelationships .