---
title: "Class EntityLoadConfigurationBuilder"
slug: "sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfigurationbuilder"
abstract: ""
---
# Class EntityLoadConfigurationBuilder

Default implementation of [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html).

## Inheritance

object

EntityLoadConfigurationBuilder

## Implements

[IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html)

## Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadConfigurations

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class EntityLoadConfigurationBuilder : IEntityLoadConfigurationBuilder
```

## Constructors

### EntityLoadConfigurationBuilder()

Initializes a new instance of the [EntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfigurationbuilder.html) class. The builder will build a completely new [EntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfiguration.html).

#### Declaration

```csharp
public EntityLoadConfigurationBuilder()
```

### EntityLoadConfigurationBuilder(IEntityLoadConfiguration)

Initializes a new instance of the [EntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfigurationbuilder.html) class. The builder will extend or overwrite an existing [EntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfiguration.html).

#### Declaration

```csharp
public EntityLoadConfigurationBuilder(IEntityLoadConfiguration entityLoadConfiguration)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html) | entityLoadConfiguration | The existing [EntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.entityloadconfiguration.html) to extend or overwrite. |

## Methods

### Build()

Gets the resulting instance of [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html).

#### Declaration

```csharp
public IEntityLoadConfiguration Build()
```

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html) | The builder. |

### InCulture(CultureInfo)

Indicates that entities should be loaded in the specified `culture`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder InCulture(CultureInfo culture)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| CultureInfo | culture | The culture. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### InCultures(params CultureInfo\[\])

Indicates that entities should be loaded in the specified `cultures`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder InCultures(params CultureInfo[] cultures)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| CultureInfo | cultures | The cultures. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### InCultures(IEnumerable<CultureInfo>)

Indicates that entities should be loaded in the specified `cultures`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder InCultures(IEnumerable<CultureInfo> cultures)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>CultureInfo | cultures | The cultures. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### InCultures(LoadOption)

Indicates that entities should be loaded int the cultures specified by [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html).

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder InCultures(LoadOption loadOption)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) | loadOption | The load option. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithProperties(IEnumerable<string>)

Indicates that entities should be loaded with the specified `properties`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithProperties(IEnumerable<string> properties)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>string | properties | The properties. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithProperties(LoadOption)

Indicates that entities should be loaded with the properties specified by `loadOption`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithProperties(LoadOption loadOption)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) | loadOption | The load option. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithProperties(params string\[\])

Indicates that entities should be loaded with the specified `properties`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithProperties(params string[] properties)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | properties | The properties. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithProperty(string)

Indicates that entities should be loaded with the specified `property`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithProperty(string property)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | property | The property. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelation(string, RelationRole?)

Indicates that entities should be loaded with the specified `relation` in the specified `role`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelation(string relation, RelationRole? role)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | relation | The relation. |
| [RelationRole](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.relationrole.html) | role | The role. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelation(string)

Indicates that entities should be loaded with the specified `relation`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelation(string relation)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | relation | The relations. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelations(IEnumerable<RelationSpecification>)

Indicates that entities should be loaded with the relations specified by `specifications`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelations(IEnumerable<RelationSpecification> specs)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>[RelationSpecification](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.relationspecification.html) | specs |  |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelations(IEnumerable<string>)

Indicates that entities should be loaded with the specified `relations`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelations(IEnumerable<string> relations)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>string | relations | The relations. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelations(LoadOption)

Indicates that entities should be loaded with the properties specified by `loadOption`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelations(LoadOption loadOption)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [LoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.loadoption.html) | loadOption | The load option. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelations(params RelationSpecification\[\])

Indicates that entities should be loaded with the relations specified by `specifications`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelations(params RelationSpecification[] specs)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [RelationSpecification](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.relationspecification.html) | specs |  |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### WithRelations(params string\[\])

Indicates that entities should be loaded with the specified `relations`.

#### Declaration

```csharp
public IEntityLoadConfigurationBuilder WithRelations(params string[] relations)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | relations | The relations. |

#### Returns

| Type | Description |
| --- | --- |
| [IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html) | The builder. |

### Implements

[IEntityLoadConfigurationBuilder](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder.html)
