Skip to main content

SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork>.SaveAndClose() Method

Saves changes in the underlying unit of work and closes the corresponding view.

Namespace: DevExpress.Mvvm.ViewModel

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

NuGet Package: DevExpress.Scaffolding.Core


[Command(CanExecuteMethodName = "CanSave")]
public void SaveAndClose()


Since SingleObjectViewModelBase is a POCO view model, an instance of this class will also expose the SaveAndCloseCommand property that can be used as a binding source in views.

See Also