Share via


RelatedEnd.IRelatedEnd.Remove Method

Definition

Overloads

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.

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.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
bool IRelatedEnd.Remove (System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships entity);
Function Remove (entity As IEntityWithRelationships) As Boolean Implements IRelatedEnd.Remove

Parameters

entity
IEntityWithRelationships

Entity instance to remove from the related end

Returns

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

Implements

Attributes

Applies to

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.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
bool IRelatedEnd.Remove (object entity);
Function Remove (entity As Object) As Boolean Implements IRelatedEnd.Remove

Parameters

entity
Object

Entity instance to remove from the related end

Returns

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

Implements

Attributes

Applies to