RelatedEnd.IRelatedEnd.Remove Method (Object)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

bool IRelatedEnd.Remove(
	object 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