---
title: "Interface IEntityLoadConfigurationBuilder"
slug: "sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfigurationbuilder"
abstract: ""
---
# Interface IEntityLoadConfigurationBuilder

A builder for instances of [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html).

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

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IEntityLoadConfigurationBuilder
```

## 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
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
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
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
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
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
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
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
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
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
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
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
IEntityLoadConfigurationBuilder WithRelations(IEnumerable<RelationSpecification> specifications)
```

#### Parameters

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

#### 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
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
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
IEntityLoadConfigurationBuilder WithRelations(params RelationSpecification[] specifications)
```

#### Parameters

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

#### 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
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. |
