Skip to main content
A newer version of this page is available. .

IRepository<TEntity, TPrimaryKey>.Remove(TEntity) Method

Marks the given entity as EntityState.Deleted such that it will be deleted from the store when IUnitOfWork.SaveChanges is called.

Namespace: DevExpress.Mvvm.DataModel

Assembly: DevExpress.Mvvm.v19.1.DataModel.dll

Declaration

void Remove(
    TEntity entity
)

Parameters

Name Type Description
entity TEntity

The entity to remove.

Remarks

The entity must exist in the unit of work in some other state before this method is called.

See Also