Table of Contents

Class EditViewModelService<T, TEdit>

Namespace
Innova.Prism.Library.Services
Assembly
Innova.Prism.Library.dll

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

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.