Class TableSnapshot
Represents a current state of a query on a table
public class TableSnapshot
- Inheritance
-
TableSnapshot
- Inherited Members
- Extension Methods
Remarks
This representation includes (a) the underlying table of results (b) the user-presentation of these results: a subset of columns, optionally renaming those columns (c) what sorting is being applied to the table (d) the pagination state of the table (e) the query value which was used as input for the query
Ad (e): This class is used in context where queries have parameters both from larger context, and from specific user input. It is this input that is being represented.
Constructors
TableSnapshot()
public TableSnapshot()
TableSnapshot(string?, string?)
public TableSnapshot(string? presentation, string? summary = null)
Parameters
Properties
CanPageDown
public bool CanPageDown { get; }
Property Value
CanPageUp
public bool CanPageUp { get; }
Property Value
Headers
public KeyValuePair<string, string>[] Headers { get; }
Property Value
- KeyValuePair<string, string>[]
Input
public object? Input { get; set; }
Property Value
Limit
public int Limit { get; set; }
Property Value
Offset
public int Offset { get; set; }
Property Value
OrderBy
public string? OrderBy { get; set; }
Property Value
OrderByAscending
public bool OrderByAscending { get; set; }
Property Value
Selected
public int Selected { get; set; }
Property Value
Table
public Table Table { get; set; }
Property Value
Methods
GetRow(int)
public IEnumerable<value> GetRow(int row)
Parameters
row
int
Returns
- IEnumerable<value>
PackRow(int)
public value PackRow(int row)
Parameters
row
int
Returns
- value
PageDown()
public void PageDown()
PageUp()
public void PageUp()
SetPresentation(string?, string?)
public void SetPresentation(string? presentation, string? summary)
Parameters
Summarise(int)
public string Summarise(int row)
Parameters
row
int
Returns
SummariseSelected()
public value SummariseSelected()
Returns
- value