EntitySet<TEntity>.Remove(TEntity) EntitySet<TEntity>.Remove(TEntity) EntitySet<TEntity>.Remove(TEntity) EntitySet<TEntity>.Remove(TEntity) Method

定义

移除实体。Removes an entity.

public:
 virtual bool Remove(TEntity entity);
public bool Remove (TEntity entity);
abstract member Remove : 'Entity -> bool
override this.Remove : 'Entity -> bool
Public Function Remove (entity As TEntity) As Boolean

参数

entity
TEntity TEntity TEntity TEntity

要移除的实体。The entity to be removed.

返回

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

实现

适用于