---
title: "Class QueryableEntityExtensions"
slug: "sdk--stylelabs.m.base.querying.linq.queryableentityextensions"
abstract: ""
---
# Class QueryableEntityExtensions

Extension methods for QueryableEntity .

## Inheritance

object

QueryableEntityExtensions

## Namespace: StylelabsStylelabs.MStylelabs.M.BaseQueryingLinq

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public static class QueryableEntityExtensions
```

## Methods

### InCultures(IQueryableEntity, ICultureLoadOption)

Specifies the cultures in which the entities should be loaded.

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| [ICultureLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.icultureloadoption.html) | loadOption | The culture load options. |

#### Returns

| Type | Description |
| --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### LoadConfiguration(IQueryableEntity, IQueryLoadConfiguration)

Specifies the configuration on how to load the entities.

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| [IQueryLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.iqueryloadconfiguration.html) | loadConfiguration | The load configuration. |

#### Returns

| Type | Description |
| --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### Parent(IQueryableEntity, string)

Allows filtering on the parent over the specified `relation`.

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| string | relation | The name of the relation. |

#### Returns

| Type | Description |
| --- | --- |
| [QueryableRelationValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablerelationvalue.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### Property(IQueryableEntity, string, CultureInfo)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| string | property | The name of the property. |
| CultureInfo | culture | The culture used to access the values. |

#### Returns

| Type | Description |
| --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### Property(IQueryableEntity, string)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| string | property | The name of the property. |

#### Returns

| Type | Description |
| --- | --- |
| [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### WithProperties(IQueryableEntity, IPropertyLoadOption)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) | loadOption | The property load options. |

#### Returns

| Type | Description |
| --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |

### WithRelations(IQueryableEntity, IRelationLoadOption)

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

#### Declaration

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

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | entity | The entity. |
| [IRelationLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.irelationloadoption.html) | loadOption | The relation load options. |

#### Returns

| Type | Description |
| --- | --- |
| [IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | A [QueryablePropertyValue](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryablepropertyvalue.html). |
