---
title: "Class FluentEntityFactory"
slug: "fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententityfactory"
abstract: ""
---
# Class FluentEntityFactory

Provides access to the entity factory in a fluent way.

## Inheritance

object

FluentEntityFactory

## Namespace: StylelabsStylelabs.MSdkFluentWrappers

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

## Syntax

```csharp
public class FluentEntityFactory
```

## Constructors

### FluentEntityFactory(IEntityFactory, IEntitiesClient, IEntityLoadConfiguration)

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

#### Declaration

```csharp
public FluentEntityFactory(IEntityFactory entityFactory, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IEntityFactory](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.factories.ientityfactory.html) | entityFactory | The entity factory. |
| [IEntitiesClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.clients.ientitiesclient.html) | entitiesClient | The entity client. |
| [IEntityLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.ientityloadconfiguration.html) | entityLoadConfiguration | The load configuration. |

## Methods

### Create(FluentEntityDefinition)

Creates a new entity.

#### Declaration

```csharp
public FluentEntity Create(FluentEntityDefinition definition)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) | definition | The entity definition. |

#### Returns

| Type | Description |
| --- | --- |
| [FluentEntity](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententity.html) | The newly created entity. |

### Create(string)

Creates a new entity.

#### Declaration

```csharp
public FluentEntity Create(string definitionName)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | definitionName | The entity definition name. |

#### Returns

| Type | Description |
| --- | --- |
| [FluentEntity](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententity.html) | The newly created entity. |
