GridResultsT Class

This class is used for data lookups when we want to fill a table with data. It returns the data in Results.
In TotalDataCount we return the total number of items in based on the query/partition key provided.
In StartIndex we return the index of the first item in the Results list.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class GridResults<T>
where T : IIdLabel
Inheritance
Object    GridResultsT

Type Parameters

T
Data type the list is based on. Must be derived from IIdLabel

Constructors

GridResultsT(IReadOnlyListT) Provides a GridResultsT object based on the results found, but where no subqueries were made.
In this case we assume the results are the only items available to the user.
GridResultsT(Int32, IReadOnlyListT, Int32) Provides a return based results from a query and a check how many items there are available in total.

Properties

Results The filtered results of the query.
StartIndex The index of the first item in the Results list.
TotalDataCount The total amount of items available to the user based on the query/partition key provided in the IAzureCosmosDb method.

See Also