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

Declaration

public virtual bool CanDelete(
    TProjection projectionEntity
)
Public Overridable Function CanDelete(
    projectionEntity As TProjection
) As Boolean

Parameters

Name Type Description
projectionEntity TProjection

An entity to edit.

Returns

Type
Boolean
See Also