Class SortableViewModelBase<T>
Base class for a view model that provides data sorting capabilities for a result set
Implements
Inherited Members
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public abstract class SortableViewModelBase<T> : ISortableResult
Type Parameters
Name | Description |
---|---|
T | Data type for the result items |
Constructors
| Improve this Doc View SourceSortableViewModelBase()
Declaration
protected SortableViewModelBase()
Properties
| Improve this Doc View SourceCurrentSortDirection
Direction for the sort: Ascending or Descending
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 to sort by
Declaration
[Display(Name = "Current Sort Property")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string CurrentSortProperty { get; set; }
Property Value
Type | Description |
---|---|
string |
Results
Results of the search wrapped in a wrapper that provides paging services
Declaration
public PageableResults<T>? Results { get; set; }
Property Value
Type | Description |
---|---|
PageableResults<T> |