Table of Contents

Class BaseInsertEntityViewModel<T, TResult>

Namespace
Innova.Prism.Library.BaseViewModels
Assembly
Innova.Prism.Library.dll
public class BaseInsertEntityViewModel<T, TResult> : BaseDataViewModelDialog<T, TResult>, INotifyPropertyChanged, IBusyViewModel, IDialogAware, ISupportSetFocusOnFirstItem, IInsertEntityViewModel<T, TResult>, IDataViewModelDialog<T, TResult>, IViewModelDialog where T : class where TResult : class, INotifyPropertyChanged, IEntityValidation

Type Parameters

T
TResult
Inheritance
BaseInsertEntityViewModel<T, TResult>
Implements
IDialogAware

Constructors

BaseInsertEntityViewModel(IInsertViewModelService<T, TResult>, IWindowDialogService, IEventAggregator, ILogger<BaseInsertEntityViewModel<T, TResult>>)

Fields

PublishEntitySelectedEvent
SaveAndInsertCommandKey
ShouldCloseDialog
logger

Properties

InsertCommand
RelatedPrimaryKey
SaveAndInsertCommand
ViewModelService

Methods

CanInsert()
Cancel()
HideSaveAndInsertButton()
InsertMainEntity()
LoadMainEntity()
OnDialogOpened(IDialogParameters)

Called when the dialog is opened.

RaiseCanExecuteChanged()
Save()
SaveAndAddNew()