RelatedEnd.IRelatedEnd.Remove Method (Object)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

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: