RelatedEnd::IRelatedEnd::Remove Method (Object^)

.NET Framework (current version)
 

Removes an object from the related end if the object is part of the related end.

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

private:
virtual bool Remove(
	Object^ entity
) sealed = IRelatedEnd::Remove

Parameters

entity
Type: System::Object^

An entity instance to remove from the related end.

Return Value

Type: System::Boolean

true if the entity was successfully removed; otherwise, false.

If the source entity object is attached to a cache, the relationship is marked for deletion.

.NET Framework
Available since 4.0
Return to top
Show: