Class QueryableEntityExtensions
Extension methods for QueryableEntity .
Inheritance
object
QueryableEntityExtensions
Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq
Assembly: Stylelabs.M.Sdk.dll
Syntax
Methods
InCultures(IQueryableEntity, ICultureLoadOption)
Specifies the cultures in which the entities should be loaded.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| ICultureLoadOption | loadOption | The culture load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity | A QueryablePropertyValue. |
LoadConfiguration(IQueryableEntity, IQueryLoadConfiguration)
Specifies the configuration on how to load the entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| IQueryLoadConfiguration | loadConfiguration | The load configuration. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity | A QueryablePropertyValue. |
Parent(IQueryableEntity, string)
Allows filtering on the parent over the specified relation.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| string | relation | The name of the relation. |
Returns
| Type | Description |
|---|---|
| QueryableRelationValue | A QueryablePropertyValue. |
Property(IQueryableEntity, string, CultureInfo)
Allows filtering and sorting on the values of the specified property in the specified culture.
Declaration
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 | A QueryablePropertyValue. |
Property(IQueryableEntity, string)
Allows filtering and sorting on the values of the specified property.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| string | property | The name of the property. |
Returns
| Type | Description |
|---|---|
| QueryablePropertyValue | A QueryablePropertyValue. |
WithProperties(IQueryableEntity, IPropertyLoadOption)
Specifies the properties that need to be loaded with the entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| IPropertyLoadOption | loadOption | The property load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity | A QueryablePropertyValue. |
WithRelations(IQueryableEntity, IRelationLoadOption)
Specifies the relations that need to be loaded with the entities.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IQueryableEntity | entity | The entity. |
| IRelationLoadOption | loadOption | The relation load options. |
Returns
| Type | Description |
|---|---|
| IQueryableEntity | A QueryablePropertyValue. |
If you have suggestions for improving this article, let us know!