logo
logo

Interface IEntityFactory

Contains functionality to create IEntity instances.

Namespace: Stylelabs.M.Sdk.Factories
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IEntityFactory

Methods

CreateAsync(IEntityDefinition, ICultureLoadOption)

Creates an IEntity instance of the given IEntityDefinition.

Declaration
Task<IEntity> CreateAsync(IEntityDefinition definition, ICultureLoadOption cultureLoadOption = null)
Parameters
Type Name Description
IEntityDefinition definition

The entity definition.

ICultureLoadOption cultureLoadOption
Returns
Type Description
Task<IEntity>

A new IEntity instance.

CreateAsync(String, ICultureLoadOption)

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

Declaration
Task<IEntity> CreateAsync(string definitionName, ICultureLoadOption cultureLoadOption = null)
Parameters
Type Name Description
System.String definitionName

The entity definition name (case insensitive).

ICultureLoadOption cultureLoadOption
Returns
Type Description
Task<IEntity>

A new IEntity instance.

Can we improve this article ? Provide feedback