Skip to main content

CollectionViewModelBase<TEntity, TProjection, TPrimaryKey, TUnitOfWork>.Delete(TProjection) Method

Deletes a given entity from the repository and saves changes if confirmed by the user. Since CollectionViewModelBase is a POCO view model, an the instance of this class will also expose the DeleteCommand property that can be used as a binding source in views.

Namespace: DevExpress.Mvvm.ViewModel

Assembly: DevExpress.Mvvm.v23.2.ViewModel.dll

NuGet Package: DevExpress.Scaffolding.Core

Declaration

public virtual void Delete(
    TProjection projectionEntity
)

Parameters

Name Type Description
projectionEntity TProjection

An entity to edit.

See Also