Show / Hide Table of Contents

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.

Inheritance
object
SimpleSearchResults<T>
Implements
ISortableResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

| Edit this page View Source

SimpleSearchResults()

Declaration
public SimpleSearchResults()

Properties

| Edit this page View Source

CurrentPage

Index of the currently displayed page

Declaration
public int CurrentPage { get; set; }
Property Value
Type Description
int
| Edit this page View Source

CurrentPageValues

The result set values for the current page

Declaration
public IList<T> CurrentPageValues { get; set; }
Property Value
Type Description
IList<T>
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

ItemsPerPage

Number of items displayed per page

Declaration
public int ItemsPerPage { get; set; }
Property Value
Type Description
int
| Edit this page View Source

PageCount

Number of pages in the result

Declaration
public int PageCount { get; set; }
Property Value
Type Description
int
| Edit this page View Source

SearchValue

Search value for simple search

Declaration
[JsonPropertyName("simpleSearchValue")]
public string SearchValue { get; set; }
Property Value
Type Description
string
| Edit this page View Source

TotalCount

Total number of records in the result

Declaration
public int TotalCount { get; set; }
Property Value
Type Description
int

Implements

ISortableResult
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com