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

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

Determines whether an entity can be deleted. Since CollectionViewModelBase is a POCO view model, this method will be used as a CanExecute callback for DeleteCommand.

Namespace: DevExpress.Mvvm.ViewModel

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

NuGet Packages: DevExpress.Scaffolding.Core, DevExpress.WindowsDesktop.Mvvm.ViewModel

Declaration

public virtual bool CanDelete(
    TProjection projectionEntity
)

Parameters

Name Type Description
projectionEntity TProjection

An entity to edit.

Returns

Type
Boolean
See Also