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

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

Determines whether entity local changes can be saved. Since CollectionViewModelBase is a POCO view model, this method will be used as a CanExecute callback for SaveCommand.

Namespace: DevExpress.Mvvm.ViewModel

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

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

Declaration

public virtual bool CanSave(
    TProjection projectionEntity
)

Parameters

Name Type Description
projectionEntity TProjection

An entity to save.

Returns

Type
Boolean
See Also