IRelatedEnd.Remove Method
Removes an entity from the related end.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | IRelatedEnd.Remove(IEntityWithRelationships) | Removes an entity from the related end. This method works in exactly the same way as Remove(object). It is maintained for backward compatibility with previous versions of IRelatedEnd. |
![]() ![]() | IRelatedEnd.Remove(Object) | Removes an entity from the related end. If owner is attached to a cache, marks relationship for deletion and if the relationship is composition also marks the entity for deletion. |
RelatedEnd.IRelatedEnd.Remove Method (IEntityWithRelationships)
Removes an entity from the related end. This method works in exactly the same way as Remove(object). It is maintained for backward compatibility with previous versions of IRelatedEnd.
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] bool IRelatedEnd.Remove( IEntityWithRelationships entity )
Parameters
- entity
-
Type:
System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships
Entity instance to remove from the related end
Return Value
Type: System.BooleanReturns true if the entity was successfully removed, false if the entity was not part of the RelatedEnd.
RelatedEnd.IRelatedEnd.Remove Method (Object)
Removes an entity from the related end. If owner is attached to a cache, marks relationship for deletion and if the relationship is composition also marks the entity for deletion.
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] bool IRelatedEnd.Remove( object entity )
Parameters
- entity
-
Type:
System.Object
Entity instance to remove from the related end
Return Value
Type: System.BooleanReturns true if the entity was successfully removed, false if the entity was not part of the RelatedEnd.