Table of Contents

Class TableSnapshot

Namespace
DCR.Workflow.Effect
Assembly
DCR.Workflow.dll

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

presentation string
summary string

Properties

CanPageDown

public bool CanPageDown { get; }

Property Value

bool

CanPageUp

public bool CanPageUp { get; }

Property Value

bool

Headers

public KeyValuePair<string, string>[] Headers { get; }

Property Value

KeyValuePair<string, string>[]

Input

public object? Input { get; set; }

Property Value

object

Limit

public int Limit { get; set; }

Property Value

int

Offset

public int Offset { get; set; }

Property Value

int

OrderBy

public string? OrderBy { get; set; }

Property Value

string

OrderByAscending

public bool OrderByAscending { get; set; }

Property Value

bool

Selected

public int Selected { get; set; }

Property Value

int

Table

public Table Table { get; set; }

Property Value

Table

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

presentation string
summary string

Summarise(int)

public string Summarise(int row)

Parameters

row int

Returns

string

SummariseSelected()

public value SummariseSelected()

Returns

value