Table of Contents

Class DataQueryListBase<TModel, TDomainModel, TListModel>

Namespace
Dynamicweb.CoreUI.Data
Assembly
Dynamicweb.CoreUI.dll
public abstract class DataQueryListBase<TModel, TDomainModel, TListModel> : DataQuerySimpleListBase<TModel, TListModel>, IPageable, ISortable, IFilterable where TModel : DataViewModelBase where TListModel : DataListViewModel<TModel>

Type Parameters

TModel
TDomainModel
TListModel
Inheritance
DataQueryModelBase<TListModel>
DataQuerySimpleListBase<TModel, TListModel>
DataQueryListBase<TModel, TDomainModel, TListModel>
Implements
Derived
Inherited Members
Extension Methods

Constructors

DataQueryListBase()

protected DataQueryListBase()

Properties

Filter

public string? Filter { get; set; }

Property Value

string

PagingIndex

public int? PagingIndex { get; set; }

Property Value

int?

PagingSize

public int? PagingSize { get; set; }

Property Value

int?
public string Search { get; set; }

Property Value

string

SortColumnName

public string SortColumnName { get; set; }

Property Value

string

SortDirection

public SortDirection? SortDirection { get; set; }

Property Value

SortDirection?

Methods

CreateFilterProvider()

protected virtual FilterProvider<TModel>? CreateFilterProvider()

Returns

FilterProvider<TModel>

GetExcludedFilters()

protected virtual IEnumerable<string>? GetExcludedFilters()

Returns

IEnumerable<string>

GetListItems()

Gets all domain models to be paged, filtered and sorted.

protected virtual IEnumerable<TDomainModel>? GetListItems()

Returns

IEnumerable<TDomainModel>

GetModel()

public override sealed TListModel? GetModel()

Returns

TListModel

GetPreparedListItems(FilterProvider<TModel>?)

protected virtual PreparedListResult<TDomainModel> GetPreparedListItems(FilterProvider<TModel>? filterProvider)

Parameters

filterProvider FilterProvider<TModel>

Returns

PreparedListResult<TDomainModel>

GetPreparedListItems(out int?)

Gets a list of domain models that have been paged, filtered and sorted.

protected virtual IEnumerable<TDomainModel>? GetPreparedListItems(out int? totalCount)

Parameters

totalCount int?

The total number of items in the unpaged list.

Returns

IEnumerable<TDomainModel>

MakeListModel()

protected abstract TListModel MakeListModel()

Returns

TListModel

MapModels(IEnumerable<TDomainModel>)

protected virtual IEnumerable<TModel> MapModels(IEnumerable<TDomainModel> items)

Parameters

items IEnumerable<TDomainModel>

Returns

IEnumerable<TModel>
To top