1. Stylelabs.M.Sdk.Fluent.Wrappers

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

public class FluentEntityFactory

Constructors

FluentEntityFactory(IEntityFactory, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentEntityFactory class.

Declaration

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

Parameters

TypeNameDescription
IEntityFactoryentityFactoryThe entity factory.
IEntitiesCliententitiesClientThe entity client.
IEntityLoadConfigurationentityLoadConfigurationThe load configuration.

Methods

Create(FluentEntityDefinition)

Creates a new entity.

Declaration

public FluentEntity Create(FluentEntityDefinition definition)

Parameters

TypeNameDescription
FluentEntityDefinitiondefinitionThe entity definition.

Returns

TypeDescription
FluentEntityThe newly created entity.

Create(string)

Creates a new entity.

Declaration

public FluentEntity Create(string definitionName)

Parameters

TypeNameDescription
stringdefinitionNameThe entity definition name.

Returns

TypeDescription
FluentEntityThe newly created entity.
If you have suggestions for improving this article, let us know!