1. Stylelabs.M.Sdk.Factories

Interface ITypedEntityFactory

Defines the typed entity factory.

Namespace: StylelabsStylelabs.MSdkFactories

Assembly: Stylelabs.M.Sdk.dll

Syntax

public interface ITypedEntityFactory

Methods

CreateEntity(EntityConstructionArgs)

Creates a typed entity.

Declaration

IEntity CreateEntity(EntityConstructionArgs args)

Parameters

TypeNameDescription
EntityConstructionArgsargsThe entity construction arguments.

Returns

TypeDescription
IEntityThe entity.

FromEntity(IEntity)

Maps an IEntity to a typed entity.

Declaration

T FromEntity<T>(IEntity entity) where T : ITypedEntity

Parameters

TypeNameDescription
IEntityentityThe entity to map.

Returns

TypeDescription
TThe typed entity.

Type Parameters

NameDescription
TThe typed entity type.
If you have suggestions for improving this article, let us know!