1. Stylelabs.M.Base.Querying.Linq

Class QueryableEntityExtensions

Extension methods for QueryableEntity .

Inheritance

object

QueryableEntityExtensions

Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq

Assembly: Stylelabs.M.Sdk.dll

Syntax

public static class QueryableEntityExtensions

Methods

InCultures(IQueryableEntity, ICultureLoadOption)

Specifies the cultures in which the entities should be loaded.

Declaration

public static IQueryableEntity InCultures(this IQueryableEntity entity, ICultureLoadOption loadOption)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
ICultureLoadOptionloadOptionThe culture load options.

Returns

LoadConfiguration(IQueryableEntity, IQueryLoadConfiguration)

Specifies the configuration on how to load the entities.

Declaration

public static IQueryableEntity LoadConfiguration(this IQueryableEntity entity, IQueryLoadConfiguration loadConfiguration)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
IQueryLoadConfigurationloadConfigurationThe load configuration.

Returns

Parent(IQueryableEntity, string)

Allows filtering on the parent over the specified relation.

Declaration

public static QueryableRelationValue Parent(this IQueryableEntity entity, string relation)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
stringrelationThe name of the relation.

Returns

Property(IQueryableEntity, string, CultureInfo)

Allows filtering and sorting on the values of the specified property in the specified culture.

Declaration

public static QueryablePropertyValue Property(this IQueryableEntity entity, string property, CultureInfo culture)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
stringpropertyThe name of the property.
CultureInfocultureThe culture used to access the values.

Returns

Property(IQueryableEntity, string)

Allows filtering and sorting on the values of the specified property.

Declaration

public static QueryablePropertyValue Property(this IQueryableEntity entity, string property)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
stringpropertyThe name of the property.

Returns

WithProperties(IQueryableEntity, IPropertyLoadOption)

Specifies the properties that need to be loaded with the entities.

Declaration

public static IQueryableEntity WithProperties(this IQueryableEntity entity, IPropertyLoadOption loadOption)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
IPropertyLoadOptionloadOptionThe property load options.

Returns

WithRelations(IQueryableEntity, IRelationLoadOption)

Specifies the relations that need to be loaded with the entities.

Declaration

public static IQueryableEntity WithRelations(this IQueryableEntity entity, IRelationLoadOption loadOption)

Parameters

TypeNameDescription
IQueryableEntityentityThe entity.
IRelationLoadOptionloadOptionThe relation load options.

Returns

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