Interface IEntityFactory

Contains functionality to create IEntity instances.

Namespace: StylelabsStylelabs.MSdkFactories
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public interface IEntityFactory

Methods

CreateAsync(IEntityDefinition, ICultureLoadOption)

Creates an IEntity instance of the given IEntityDefinition.

Declaration
RequestResponse

Task<IEntity> CreateAsync(IEntityDefinition definition, ICultureLoadOption cultureLoadOption = null)
Parameters
TypeNameDescription
IEntityDefinitiondefinition

The entity definition.

ICultureLoadOptioncultureLoadOption

The culture load option.

Returns
TypeDescription
Task<>IEntity

A new IEntity instance.

CreateAsync(string, ICultureLoadOption)

Creates an IEntity instance of the IEntityDefinition corresponding to the definitionName.

Declaration
RequestResponse

Task<IEntity> CreateAsync(string definitionName, ICultureLoadOption cultureLoadOption = null)
Parameters
TypeNameDescription
stringdefinitionName

The entity definition name (case insensitive).

ICultureLoadOptioncultureLoadOption

The culture load option.

Returns
TypeDescription
Task<>IEntity

A new IEntity instance.

Do you have some feedback for us?

If you have suggestions for improving this article,