IRelatedEnd.Remove Method
Removes an entity from the related end.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Remove(IEntityWithRelationships) | Removes an object from the collection of objects at the related end. |
![]() | Remove(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.
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.Booleantrue 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.
Parameters
- entity
-
Type:
System.Object
An object to remove from the collection.
Return Value
Type: System.Booleantrue if entity was successfully removed; false if entity was not part of the IRelatedEnd .