Class SimpleSearchResults<T>
View model for displaying the results of a simple search. Provides basic properties for handling sorting of the results of the search and paging through the result set.
Implements
Inherited Members
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class SimpleSearchResults<T> : ISortableResult
Type Parameters
Name | Description |
---|---|
T | Data type for the result items |
Constructors
| Improve this Doc View SourceSimpleSearchResults()
Declaration
public SimpleSearchResults()
Properties
| Improve this Doc View SourceCurrentPage
Index of the currently displayed page
Declaration
public int CurrentPage { get; set; }
Property Value
Type | Description |
---|---|
int |
CurrentPageValues
The result set values for the current page
Declaration
public IList<T> CurrentPageValues { get; set; }
Property Value
Type | Description |
---|---|
IList<T> |
CurrentSortDirection
Direction for the result sort
Declaration
[Display(Name = "Current Sort Direction")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string CurrentSortDirection { get; set; }
Property Value
Type | Description |
---|---|
string |
CurrentSortProperty
Property name or column name for the result sort
Declaration
[Display(Name = "Current Sort Property")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string CurrentSortProperty { get; set; }
Property Value
Type | Description |
---|---|
string |
ItemsPerPage
Number of items displayed per page
Declaration
public int ItemsPerPage { get; set; }
Property Value
Type | Description |
---|---|
int |
PageCount
Number of pages in the result
Declaration
public int PageCount { get; set; }
Property Value
Type | Description |
---|---|
int |
SearchValue
Search value for simple search
Declaration
[JsonPropertyName("simpleSearchValue")]
public string SearchValue { get; set; }
Property Value
Type | Description |
---|---|
string |
TotalCount
Total number of records in the result
Declaration
public int TotalCount { get; set; }
Property Value
Type | Description |
---|---|
int |