---
title: "Class TypedEntityCreatorBase<T>"
slug: "sdk--stylelabs.m.sdk.models.factories.typedentitycreatorbase-1"
abstract: ""
---
# Class TypedEntityCreatorBase<T>

Base typed entity creator.

## Inheritance

object

TypedEntityCreatorBase<T>

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsFactories

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public abstract class TypedEntityCreatorBase<T> where T : EntityBase
```

## Type Parameters

| Name | Description |
| --- | --- |
| T | The type of the entity. |

## Methods

### CreateAsset(EntityConstructionArgs)

Creates an asset.

#### Declaration

```csharp
protected abstract T CreateAsset(EntityConstructionArgs args)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [EntityConstructionArgs](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.entityconstructionargs.html) | args | Entity creation args. |

#### Returns

| Type | Description |
| --- | --- |
| T | The entity. |

### CreateEntity(EntityConstructionArgs)

Creates an entity.

#### Declaration

```csharp
protected abstract T CreateEntity(EntityConstructionArgs args)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [EntityConstructionArgs](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.entityconstructionargs.html) | args | Entity creation args. |

#### Returns

| Type | Description |
| --- | --- |
| T | The entity. |

### CreateMailTemplate(EntityConstructionArgs)

Creates a mail template.

#### Declaration

```csharp
protected abstract T CreateMailTemplate(EntityConstructionArgs args)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [EntityConstructionArgs](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.entityconstructionargs.html) | args | Entity creation args. |

#### Returns

| Type | Description |
| --- | --- |
| T | The entity. |

### CreateTypedEntity(EntityConstructionArgs)

Initializes a new instance of TypedEntityCreatorBase .

#### Declaration

```csharp
public virtual T CreateTypedEntity(EntityConstructionArgs args)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [EntityConstructionArgs](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.entityconstructionargs.html) | args | The [EntityConstructionArgs](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.base.entityconstructionargs.html). |

#### Returns

| Type | Description |
| --- | --- |
| T | A [ITypedEntity](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.base.itypedentity.html). |
