Class FluentQueryableEntities

Provides access to queryable entities in a fluent way.

Inheritance
object
FluentQueryableEntities
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse

public class FluentQueryableEntities

Constructors

FluentQueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>>, IQueryingClient, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentQueryableEntities class.

Declaration
RequestResponse

public FluentQueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc, IQueryingClient queryingClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
TypeNameDescription
Func<, >QueryableEntitiesIQueryableEntityIQueryable`1IQueryableEntityqueryFunc

The entity query.

IQueryingClientqueryingClient

The IQueryingClient instance.

IEntitiesCliententitiesClient

The IEntitiesClient instance.

IEntityLoadConfigurationentityLoadConfiguration

The IEntityLoadConfiguration.

Methods

GetIterator()

Gets an iterator for the specified query.

Declaration
RequestResponse

public FluentEntitiesIterator GetIterator()
Returns

GetResults()

Executes the query and returns the results.

Declaration
RequestResponse

public Task<IEnumerable<FluentEntity>> GetResults()
Returns
TypeDescription
Task<>IEnumerable<>FluentEntity

A collection of FluentEntity.

WithSkip(int?)

Skips the specified amount of entities.

Declaration
RequestResponse

public FluentQueryableEntities WithSkip(int? skip)
Parameters
TypeNameDescription
intskip

How many items to skip.

Returns

WithSorting(string, SortFieldType, QuerySortOrder, string)

Defines a sorting criteria.

Declaration
RequestResponse

public FluentQueryableEntities WithSorting(string field, SortFieldType fieldType, QuerySortOrder order = QuerySortOrder.Asc, string culture = null)
Parameters
TypeNameDescription
stringfield

The field.

SortFieldTypefieldType

The field type.

QuerySortOrderorder

The order.

stringculture

The culture.

Returns

WithTake(int?)

Takes the specified amount of entities.

Declaration
RequestResponse

public FluentQueryableEntities WithTake(int? take)
Parameters
TypeNameDescription
inttake

How many items to take.

Returns

Do you have some feedback for us?

If you have suggestions for improving this article,