Table of Contents

Class InsertViewModelService<T, TInsert>

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

Base class for insert view model services.

public abstract class InsertViewModelService<T, TInsert> : ViewModelService<T>, IInsertViewModelService<T, TInsert>, IViewModelService<T> where T : class where TInsert : class

Type Parameters

T

The type of the entity.

TInsert

The type of the entity to insert.

Inheritance
InsertViewModelService<T, TInsert>
Implements

Constructors

InsertViewModelService(IInsertEntityService<T, TInsert>, IEntityServiceConfiguration<T>, ILookupService, IWindowDialogService, IEventAggregator, IEntityValidatorService, ILogger<InsertViewModelService<T, TInsert>>)

Initializes a new instance of the InsertViewModelService<T, TInsert> class.

Properties

EntityService

Gets the entity service for inserting entities.

Methods

GetInsert(IPropertyValues, CancellationToken)

Gets the entity to insert based on the provided property values.

Insert(TInsert, CancellationToken)

Inserts the specified entity.