IRelatedEnd.Remove Method

 

Removes an entity from the related end.

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

NameDescription
System_CAPS_pubmethodRemove(IEntityWithRelationships)

Removes an object from the collection of objects at the related end.

System_CAPS_pubmethodRemove(Object)

Removes an object from the collection of objects at the related end.


IRelatedEnd.Remove Method (IEntityWithRelationships)

Removes an object from the collection of objects at the related end.

bool Remove(
	IEntityWithRelationships entity
)

Parameters

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

The object to remove from the collection. entity must implement IEntityWithRelationships .

Return Value

Type: System.Boolean

true if entity was successfully removed, false if entity was not part of the IRelatedEnd .


IRelatedEnd.Remove Method (Object)

Removes an object from the collection of objects at the related end.

bool Remove(
	object entity
)

Parameters

entity
Type: System.Object

An object to remove from the collection.

Return Value

Type: System.Boolean

true if entity was successfully removed; false if entity was not part of the IRelatedEnd .