---
title: "Class FluentEntityDefinitions"
slug: "fluent-sdk--stylelabs.m.sdk.fluent.wrappers.fluententitydefinitions"
abstract: ""
---
# Class FluentEntityDefinitions

Provides access to entity definitions in a fluent way.

## Inheritance

object

FluentEntityDefinitions

## Namespace: StylelabsStylelabs.MSdkFluentWrappers

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

## Syntax

```csharp
public class FluentEntityDefinitions
```

## Constructors

### FluentEntityDefinitions(IEntityDefinitionsClient)

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

#### Declaration

```csharp
public FluentEntityDefinitions(IEntityDefinitionsClient entityDefinitionsClient)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IEntityDefinitionsClient](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.clients.ientitydefinitionsclient.html) | entityDefinitionsClient | The entity definitions client. |

## Methods

### Get(long)

Gets the [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instance by the specified `id`.

#### Declaration

```csharp
public FluentEntityDefinition Get(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Entity definition id. |

#### Returns

| Type | Description |
| --- | --- |
| [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) | The [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) or null if the entity definition does not exist. |

### Get(string)

Gets the [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instance by the specified `name`.

#### Declaration

```csharp
public FluentEntityDefinition Get(string name)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | name | Entity definition name (case insensitive). |

#### Returns

| Type | Description |
| --- | --- |
| [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) | The [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) or null if the entity definition does not exist. |

### GetMany(IEnumerable<long>)

Gets the [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instances by the ids of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.

#### Declaration

```csharp
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<long> ids)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>long | ids | The ids. |

#### Returns

| Type | Description |
| --- | --- |
| IEnumerable<>[FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) | Non null collection of [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instances. |

### GetMany(IEnumerable<string>)

Gets the [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instances by the names of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.

#### Declaration

```csharp
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<string> names)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| IEnumerable<>string | names | Entity definition names (case insensitive). |

#### Returns

| Type | Description |
| --- | --- |
| IEnumerable<>[FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) | Non null collection of [FluentEntityDefinition](https://doc.sitecore.com/ch/en/developers/api-reference/fluent-sdk--stylelabs.m.sdk.fluent.models.fluententitydefinition.html) instances. |

### New(string)

Creates an entity definition.

#### Declaration

```csharp
public FluentEntityDefinition New(string name)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | name | The name of the entity definition to create. |

#### Returns

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