Class EditViewModelService<T, TEdit>
Represents a base class for edit view model services.
public abstract class EditViewModelService<T, TEdit> : ViewModelService<T>, IEditViewModelService<T, TEdit>, IViewModelService<T> where T : class where TEdit : class
Type Parameters
T
The type of the entity.
TEdit
The type of the edit entity.
- Inheritance
-
EditViewModelService<T, TEdit>
- Implements
-
IEditViewModelService<T, TEdit>
Constructors
- EditViewModelService(IEditEntityService<T, TEdit>, IEntityServiceConfiguration<T>, ILookupService, IWindowDialogService, IEventAggregator, IEntityValidatorService, ILogger<EditViewModelService<T, TEdit>>)
Initializes a new instance of the EditViewModelService<T, TEdit> class.
Properties
- EntityService
Gets the entity service for editing.
Methods
- GetEdit(PrimaryKeys<T>, CancellationToken)
Gets the edit entity based on the primary keys.
- Update(TEdit, CancellationToken)
Updates the edit entity.