Class QueryableEntityExtensions
Extension methods for .
Inheritance
Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq
Assembly: Stylelabs.M.Sdk.dll
Syntax
public static class QueryableEntityExtensionsMethods
InCultures(IQueryableEntity, ICultureLoadOption)
Specifies the cultures in which the entities should be loaded.
Declaration
public static IQueryableEntity InCultures(this IQueryableEntity entity, ICultureLoadOption loadOption)Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| ICultureLoadOption | loadOption |
The culture load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity |
LoadConfiguration(IQueryableEntity, IQueryLoadConfiguration)
Specifies the configuration on how to load the entities.
Declaration
public static IQueryableEntity LoadConfiguration(this IQueryableEntity entity, IQueryLoadConfiguration loadConfiguration)Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| IQueryLoadConfiguration | loadConfiguration |
The load configuration. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity |
Parent(IQueryableEntity, string)
Allows filtering on the parent over the specified relation.
Declaration
public static QueryableRelationValue Parent(this IQueryableEntity entity, string relation)Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| string | relation |
The name of the relation. |
Returns
| Type | Description |
|---|---|
| QueryableRelationValue |
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
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| string | property |
The name of the property. |
| CultureInfo | culture |
The culture used to access the values. |
Returns
| Type | Description |
|---|---|
| QueryablePropertyValue |
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
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| string | property |
The name of the property. |
Returns
| Type | Description |
|---|---|
| QueryablePropertyValue |
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
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| IPropertyLoadOption | loadOption |
The property load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity |
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
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity |
The entity. |
| IRelationLoadOption | loadOption |
The relation load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity |