RelatedEnd.IRelatedEnd.Remove 方法

定义

从相关端移除对象。Removes an object from the related end.

重载

IRelatedEnd.Remove(IEntityWithRelationships)

从相关端的集合中移除一个对象。Removes an object from the collection at the related end.

IRelatedEnd.Remove(Object)

如果某个对象是相关端的一部分,则从该相关端中移除该对象。Removes an object from the related end if the object is part of the related end.

IRelatedEnd.Remove(IEntityWithRelationships)

从相关端的集合中移除一个对象。Removes an object from the collection at the related end.

 virtual bool System.Data.Objects.DataClasses.IRelatedEnd.Remove(System::Data::Objects::DataClasses::IEntityWithRelationships ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Remove;
bool IRelatedEnd.Remove (System.Data.Objects.DataClasses.IEntityWithRelationships entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Remove : System.Data.Objects.DataClasses.IEntityWithRelationships -> bool
override this.System.Data.Objects.DataClasses.IRelatedEnd.Remove : System.Data.Objects.DataClasses.IEntityWithRelationships -> bool
Function Remove (entity As IEntityWithRelationships) As Boolean Implements IRelatedEnd.Remove

参数

entity
IEntityWithRelationships

要从集合中移除的实体实例。The entity instance to remove from the collection.

返回

Boolean

指示对象是否已移除的值。A value that indicates whether the object was removed.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 RelatedEnd 实例被强制转换为 IRelatedEnd 接口时使用。It can be used only when the RelatedEnd instance is cast to an IRelatedEnd interface.

IRelatedEnd.Remove 方法只是为了与以前版本的 .NET Framework 兼容。The IRelatedEnd.Remove method is only maintained for compatibility with previous versions of the .NET Framework.

适用于

IRelatedEnd.Remove(Object)

如果某个对象是相关端的一部分,则从该相关端中移除该对象。Removes an object from the related end if the object is part of the related end.

 virtual bool System.Data.Objects.DataClasses.IRelatedEnd.Remove(System::Object ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Remove;
bool IRelatedEnd.Remove (object entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Remove : obj -> bool
override this.System.Data.Objects.DataClasses.IRelatedEnd.Remove : obj -> bool
Function Remove (entity As Object) As Boolean Implements IRelatedEnd.Remove

参数

entity
Object

要从相关端中移除的实体实例。An entity instance to remove from the related end.

返回

Boolean

如果已成功移除实体,则为 true;否则为 falsetrue if the entity was successfully removed; otherwise, false.

实现

注解

如果源实体对象附加到缓存,则会将该关系标记为删除。If the source entity object is attached to a cache, the relationship is marked for deletion.

适用于