logo
logo

Class FluentQueryableEntities

Provides access to queryable entities in a fluent way.

Inheritance
System.Object
FluentQueryableEntities
Namespace: Stylelabs.M.Sdk.Fluent.Wrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentQueryableEntities : object

Constructors

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

Initializes a new instance of the FluentQueryableEntities class.

Declaration
public FluentQueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc, IQueryingClient queryingClient, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
Type Name Description
Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc

The entity query.

IQueryingClient queryingClient

The IQueryingClient instance.

IEntitiesClient entitiesClient

The IEntitiesClient instance.

IEntityLoadConfiguration entityLoadConfiguration

The IEntityLoadConfiguration.

Methods

GetIterator()

Gets an iterator for the specified query.

Declaration
public FluentEntitiesIterator GetIterator()
Returns
Type Description
FluentEntitiesIterator

GetResults()

Executes the query and returns the results.

Declaration
public Task<IEnumerable<FluentEntity>> GetResults()
Returns
Type Description
Task<IEnumerable<FluentEntity>>

WithSkip(Nullable<Int32>)

Skips the specified amount of entities.

Declaration
public FluentQueryableEntities WithSkip(int? skip)
Parameters
Type Name Description
System.Nullable<System.Int32> skip
Returns
Type Description
FluentQueryableEntities

WithSorting(String, SortFieldType, QuerySortOrder, String)

Defines a sorting criteria.

Declaration
public FluentQueryableEntities WithSorting(string field, SortFieldType fieldType, QuerySortOrder order = QuerySortOrder.Asc, string culture = null)
Parameters
Type Name Description
System.String field
SortFieldType fieldType
QuerySortOrder order
System.String culture
Returns
Type Description
FluentQueryableEntities

WithTake(Nullable<Int32>)

Takes the specified amount of entities.

Declaration
public FluentQueryableEntities WithTake(int? take)
Parameters
Type Name Description
System.Nullable<System.Int32> take
Returns
Type Description
FluentQueryableEntities

Can we improve this article ? Provide feedback