---
title: "Class FluentClient"
slug: "fluent-sdk--stylelabs.m.sdk.fluent.fluentclient"
abstract: ""
---
# Class FluentClient

Provides a fluent interface for commonly used operations of the [IMClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.imclient.html).

## Inheritance

object

FluentClient

## Namespace: StylelabsStylelabs.MSdkFluent

## Assembly: Stylelabs.M.Sdk.Fluent.dll

## Syntax

```csharp
public class FluentClient
```

## Constructors

### FluentClient(IMClient)

Initializes a new instance of the [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) class.

#### Declaration

```csharp
public FluentClient(IMClient client)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IMClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.imclient.html) | client | The underlying [IMClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.imclient.html) instance. |

## Properties

### Entities

Provides access to entities in a fluent way.

#### Declaration

```csharp
public FluentEntities Entities { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FluentEntities](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententities.html) |  |

### EntityDefinitions

Provides access to entity definitions in a fluent way.

#### Declaration

```csharp
public FluentEntityDefinitions EntityDefinitions { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FluentEntityDefinitions](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitydefinitions.html) |  |

### EntityFactory

Provides access to the entity factory in a fluent way.

#### Declaration

```csharp
public FluentEntityFactory EntityFactory { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FluentEntityFactory](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententityfactory.html) |  |

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

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

#### Declaration

```csharp
public IEntityLoadConfiguration EntityLoadConfiguration { get; }
```

#### Property Value

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

### Settings

Provides access to settings in a fluent way.

#### Declaration

```csharp
public FluentSettings Settings { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FluentSettings](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluentsettings.html) |  |

### Users

Provides access to users in a fluent way.

#### Declaration

```csharp
public FluentUsers Users { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [FluentUsers](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluentusers.html) |  |

## Methods

### QueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>>)

Gets the [FluentQueryableEntities](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluentqueryableentities.html) instance.

#### Declaration

```csharp
public FluentQueryableEntities QueryableEntities(Func<QueryableEntities<IQueryableEntity>, IQueryable<IQueryableEntity>> queryFunc)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| Func<, >[QueryableEntities](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.queryableentities-1.html)[IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html)IQueryable\`1[IQueryableEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.linq.iqueryableentity.html) | queryFunc | A function. |

#### Returns

| Type | Description |
| --- | --- |
| [FluentQueryableEntities](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluentqueryableentities.html) | The [FluentQueryableEntities](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluentqueryableentities.html). |

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

Sets the [ICultureLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.icultureloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UseCultureLoadOption(params CultureInfo[] cultures)
```

#### Parameters

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

#### Returns

| Type | Description |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

### UseCultureLoadOption(LoadOption)

Sets the [ICultureLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.icultureloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UseCultureLoadOption(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 |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

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

Sets the [ICultureLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.icultureloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UseCultureLoadOption(params string[] cultures)
```

#### Parameters

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

#### Returns

| Type | Description |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

### UsePropertyLoadOption(LoadOption)

Sets the [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UsePropertyLoadOption(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 |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

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

Sets the [IPropertyLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.ipropertyloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UsePropertyLoadOption(params string[] properties)
```

#### Parameters

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

#### Returns

| Type | Description |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

### UseRelationLoadOption(LoadOption)

Sets the [IRelationLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.irelationloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UseRelationLoadOption(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 |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

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

Sets the [IRelationLoadOption](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadoptions.irelationloadoption.html) for the current [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) instance.

#### Declaration

```csharp
public FluentClient UseRelationLoadOption(params RelationSpecification[] relations)
```

#### Parameters

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

#### Returns

| Type | Description |
| --- | --- |
| [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html) | The [FluentClient](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.fluentclient.html). |

### Extension Methods

[FluentClientExtensions.UseUnitTestLoadOptions(FluentClient)](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.testing.extensions.fluentclientextensions.html)
