Show / Hide Table of Contents

Class SortableViewModelBase<T>

Base class for a view model that provides data sorting capabilities for a result set

Inheritance
object
SortableViewModelBase<T>
SearchViewModelBase<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 abstract class SortableViewModelBase<T> : ISortableResult
Type Parameters
Name Description
T

Data type for the result items

Constructors

| Edit this page View Source

SortableViewModelBase()

Declaration
protected SortableViewModelBase()

Properties

| Edit this page View Source

CurrentSortDirection

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

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

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>

Implements

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