1. Stylelabs.M.Sdk.Models.Querying

Class EntityIterator

An iterator for iterating over IEntity query results.

Inheritance

object

LoadingQueryIteratorBaseIEntityQueryResult

EntityIterator

Implements

IEntityIterator

IQueryIteratorIEntityQueryResult

IIterator

Inherited Members

LoadingQueryIteratorBase.Current

LoadingQueryIteratorBase.IIterator.Current

LoadingQueryIteratorBase.CanMovePrevious()

LoadingQueryIteratorBase.CanMoveNext()

LoadingQueryIteratorBase.MovePreviousAsync()

LoadingQueryIteratorBase.MoveNextAsync()

LoadingQueryIteratorBase.Reset()

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class EntityIterator : LoadingQueryIteratorBase<IEntityQueryResult>, IEntityIterator, IQueryIterator<IEntityQueryResult>, IIterator

Constructors

EntityIterator(IMClient, Query, IEntityLoadConfiguration, IEntityQueryResult)

Initializes a new instance of the EntityIterator class.

Declaration

public EntityIterator(IMClient client, Query query, IEntityLoadConfiguration loadConfiguration, IEntityQueryResult result)

Parameters

TypeNameDescription
IMClientclientThe client.
QueryqueryThe query.
IEntityLoadConfigurationloadConfigurationThe load configuration.
IEntityQueryResultresultThe query result.

EntityIterator(IMClient, Query, IEntityLoadConfiguration)

Initializes a new instance of the EntityIterator class.

Declaration

public EntityIterator(IMClient client, Query query, IEntityLoadConfiguration loadConfiguration)

Parameters

TypeNameDescription
IMClientclientThe client.
QueryqueryThe query.
IEntityLoadConfigurationloadConfigurationThe load configuration.

Methods

GetResultAsync(Query, IEntityLoadConfiguration)

Gets the results.

Declaration

protected override Task<IEntityQueryResult> GetResultAsync(Query query, IEntityLoadConfiguration loadConfiguration)

Parameters

TypeNameDescription
QueryqueryThe 'request' query.
IEntityLoadConfigurationloadConfigurationThe load configuration.

Returns

TypeDescription
Task<>IEntityQueryResultThe query results.

Overrides

Stylelabs.M.Sdk.Models.Querying.LoadingQueryIteratorBase<Stylelabs.M.Sdk.Contracts.Querying.IEntityQueryResult>.GetResultAsync(Stylelabs.M.Base.Querying.Query, Stylelabs.M.Framework.Essentials.LoadConfigurations.IEntityLoadConfiguration)

Implements

IEntityIterator

IQueryIterator

IIterator

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