Class QueryableEntityExtensions

Current version: 3.4

Extension methods for QueryableEntity .

Inheritance
object
QueryableEntityExtensions
Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public static class QueryableEntityExtensions

Methods

InCultures(IQueryableEntity, ICultureLoadOption)

Specifies the cultures in which the entities should be loaded.

Declaration
RequestResponse
public static IQueryableEntity InCultures(this IQueryableEntity entity, ICultureLoadOption loadOption)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

ICultureLoadOptionloadOption

The culture load options.

Returns

LoadConfiguration(IQueryableEntity, IQueryLoadConfiguration)

Specifies the configuration on how to load the entities.

Declaration
RequestResponse
public static IQueryableEntity LoadConfiguration(this IQueryableEntity entity, IQueryLoadConfiguration loadConfiguration)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

IQueryLoadConfigurationloadConfiguration

The load configuration.

Returns

Parent(IQueryableEntity, string)

Allows filtering on the parent over the specified relation.

Declaration
RequestResponse
public static QueryableRelationValue Parent(this IQueryableEntity entity, string relation)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

stringrelation

The 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
RequestResponse
public static QueryablePropertyValue Property(this IQueryableEntity entity, string property, CultureInfo culture)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

stringproperty

The name of the property.

CultureInfoculture

The culture used to access the values.

Returns

Property(IQueryableEntity, string)

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

Declaration
RequestResponse
public static QueryablePropertyValue Property(this IQueryableEntity entity, string property)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

stringproperty

The name of the property.

Returns

WithProperties(IQueryableEntity, IPropertyLoadOption)

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

Declaration
RequestResponse
public static IQueryableEntity WithProperties(this IQueryableEntity entity, IPropertyLoadOption loadOption)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

IPropertyLoadOptionloadOption

The property load options.

Returns

WithRelations(IQueryableEntity, IRelationLoadOption)

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

Declaration
RequestResponse
public static IQueryableEntity WithRelations(this IQueryableEntity entity, IRelationLoadOption loadOption)
Parameters
TypeNameDescription
IQueryableEntityentity

The entity.

IRelationLoadOptionloadOption

The relation load options.

Returns

Do you have some feedback for us?

If you have suggestions for improving this article,