Skip to main content

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.v23.2.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

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