Class ListViewModelService<T, TList>
Provides a base class for list view model services.
public abstract class ListViewModelService<T, TList> : ViewModelService<T>, IListViewModelService<T, TList>, IViewModelService<T> where T : class where TList : class
Type Parameters
T
The type of the entity.
TList
The type of the list entity.
- Inheritance
-
ListViewModelService<T, TList>
- Implements
-
IListViewModelService<T, TList>
Constructors
- ListViewModelService(IListEntityService<T, TList>, IEntityServiceConfiguration<T>, ILookupService, IWindowDialogService, IEventAggregator, ISelectorFactory, IEntityValidatorService, ILogger<ListViewModelService<T, TList>>)
Initializes a new instance of the ListViewModelService<T, TList> class.
Properties
- EntityService
Gets the entity service for the list entity.
- SelectorFactory
Gets the selector factory.
Methods
- Count(QueryParameter<T>, CancellationToken)
Counts the number of entities based on the specified query parameter.
- GetPropertySelectorExpression(string)
Gets the property selector expression for the specified property name.
- GetSortExpression(string)
Gets the sort expression for the specified property name.
- Insert(List<TList>, CancellationToken)
Inserts the list of entities.
- MakeEntityUpdatable(TList)
Sets the entity as updatable.
- ToListDistinct<TValue>(string, Expression<Func<T, bool>>, CancellationToken)
Retrieves a distinct list of values for the specified column name.
- Update(List<TList>, CancellationToken)
Updates the list of entities.