1. Stylelabs.M.Sdk.Models.Querying

Class QueryResultBase

Base implementation for Query results.

Inheritance

object

QueryResultBase

EntityDefinitionIdQueryResult

EntityDefinitionQueryResult

EntityIdQueryResult

EntityQueryResult

ScrollResultBase

Implements

IQueryResult

IQueryResult

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class QueryResultBase<T> : IQueryResult<T>, IQueryResult

Type Parameters

NameDescription
TType of the queried items.

Constructors

QueryResultBase(IEnumerable, long, long)

Initializes a new instance of the QueryResultBase class.

Declaration

protected QueryResultBase(IEnumerable<T> items, long totalItems, long offset)

Parameters

TypeNameDescription
IEnumerable<>itemsThe items.
longtotalItemsThe items total.
longoffsetThe offset.

Properties

Items

Gets the results that matched the query. This property only contains the results for the requested page. There may be more results available.

Declaration

public IList<T> Items { get; set; }

Property Value

TypeDescription
IList<>

Offset

Gets or sets describes the start of this page.

Declaration

public long Offset { get; set; }

Property Value

TypeDescription
long

TotalNumberOfResults

Gets the total number of items that match the given query.

Declaration

public long TotalNumberOfResults { get; set; }

Property Value

TypeDescription
long

Explicit Interface Implementations

IQueryResult.Items

Gets the results that matched the query. This property only contains the results for the requested page. There may be more results available.

Declaration

IList<object> IQueryResult.Items { get; }

Returns

TypeDescription
IList<>object

Implements

IQueryResult

IQueryResult

If you have suggestions for improving this article, let us know!