Class EntityIterator

An iterator for iterating over IEntity query results.

Inheritance
object
EntityIterator
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

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

Constructors

EntityIterator(IMClient, Query, IEntityLoadConfiguration, IEntityQueryResult)

Initializes a new instance of the EntityIterator class.

Declaration
RequestResponse

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

The client.

Queryquery

The query.

IEntityLoadConfigurationloadConfiguration

The load configuration.

IEntityQueryResultresult

The query result.

EntityIterator(IMClient, Query, IEntityLoadConfiguration)

Initializes a new instance of the EntityIterator class.

Declaration
RequestResponse

public EntityIterator(IMClient client, Query query, IEntityLoadConfiguration loadConfiguration)
Parameters
TypeNameDescription
IMClientclient

The client.

Queryquery

The query.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Methods

GetResultAsync(Query, IEntityLoadConfiguration)

Gets the results.

Declaration
RequestResponse

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

The 'request' query.

IEntityLoadConfigurationloadConfiguration

The load configuration.

Returns
TypeDescription
Task<>IEntityQueryResult

The 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

Do you have some feedback for us?

If you have suggestions for improving this article,