---
title: "Class EntityLoadOptions"
slug: "sdk--stylelabs.m.base.querying.entityloadoptions"
abstract: ""
---
# Class EntityLoadOptions

Specifies if and how resulting entities should be loaded.

## Inheritance

object

EntityLoadOptions

## Namespace: StylelabsStylelabs.MStylelabs.M.BaseQuerying

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class EntityLoadOptions
```

## Properties

### CulturesToLoad

Gets or sets the cultures to load the entities in. If not specified, the entities will only be loaded in the invariant-culture.

If the collection contains value "\*", the entities will be loaded in all installed cultures.

#### Declaration

```csharp
public IEnumerable<string> CulturesToLoad { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEnumerable<>string |  |

### LoadEntities

Gets or sets a value indicating whether the entities should be loaded.

#### Declaration

```csharp
public bool LoadEntities { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

### PropertiesToLoad

Gets or sets the names of the properties to load with the entities. If the value contains "\*", all properties will be loaded. If the value is null, no properties will be loaded.

The default value is "\*", which mean all properties will be loaded.

#### Declaration

```csharp
public IEnumerable<string> PropertiesToLoad { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEnumerable<>string |  |

### RelationsToLoad

Gets or sets the names of the relations to load with the entities. If the value is null, no relations will be loaded.

The default value is null, which mean no relations will be loaded.

#### Declaration

```csharp
public IEnumerable<string> RelationsToLoad { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IEnumerable<>string |  |

## Methods

### ToQueryLoadConfiguration()

Converts the load-options to an instance of [IQueryLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.iqueryloadconfiguration.html).

#### Declaration

```csharp
public IQueryLoadConfiguration ToQueryLoadConfiguration()
```

#### Returns

| Type | Description |
| --- | --- |
| [IQueryLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.iqueryloadconfiguration.html) | The query load configuration. |
