IRelatedEnd.Add Method

 

Adds an entity to the related end.

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

NameDescription
System_CAPS_pubmethodAdd(IEntityWithRelationships)

Adds an object to the related end.

System_CAPS_pubmethodAdd(Object)

Adds an object to the related end.


IRelatedEnd.Add Method (IEntityWithRelationships)

Adds an object to the related end.

void Add(
	IEntityWithRelationships entity
)

Parameters

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

An object to add to the collection. entity must implement IEntityWithRelationships .


IRelatedEnd.Add Method (Object)

Adds an object to the related end.

void Add(
	object entity
)

Parameters

entity
Type: System.Object

An object to add to the collection.