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
RequestResponse
public class FluentEntityFactoryConstructors
FluentEntityFactory(IEntityFactory, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentEntityFactory class.
Declaration
RequestResponse
public FluentEntityFactory(IEntityFactory entityFactory, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)Parameters
| Type | Name | Description |
|---|---|---|
| IEntityFactory | entityFactory |
The entity factory. |
| IEntitiesClient | entitiesClient |
The entity client. |
| IEntityLoadConfiguration | entityLoadConfiguration |
The load configuration. |
Methods
Create(FluentEntityDefinition)
Creates a new entity.
Declaration
RequestResponse
public FluentEntity Create(FluentEntityDefinition definition)Parameters
| Type | Name | Description |
|---|---|---|
| FluentEntityDefinition | definition |
The entity definition. |
Returns
| Type | Description |
|---|---|
| FluentEntity |
The newly created entity. |
Create(string)
Creates a new entity.
Declaration
RequestResponse
public FluentEntity Create(string definitionName)Parameters
| Type | Name | Description |
|---|---|---|
| string | definitionName |
The entity definition name. |
Returns
| Type | Description |
|---|---|
| FluentEntity |
The newly created entity. |