IRepository<TEntity, TPrimaryKey>.Remove(TEntity) Method
In This Article
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.v24.2.DataModel.dll
NuGet Package: DevExpress.Scaffolding.Core
#Declaration
#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