1. Stylelabs.M.Sdk.Fluent.Wrappers

Class FluentEntityDefinitions

Provides access to entity definitions in a fluent way.

Inheritance

object

FluentEntityDefinitions

Namespace: StylelabsStylelabs.MSdkFluentWrappers

Assembly: Stylelabs.M.Sdk.Fluent.dll

Syntax

public class FluentEntityDefinitions

Constructors

FluentEntityDefinitions(IEntityDefinitionsClient)

Initializes a new instance of the FluentEntityDefinitions class.

Declaration

public FluentEntityDefinitions(IEntityDefinitionsClient entityDefinitionsClient)

Parameters

TypeNameDescription
IEntityDefinitionsCliententityDefinitionsClientThe entity definitions client.

Methods

Get(long)

Gets the FluentEntityDefinition instance by the specified id.

Declaration

public FluentEntityDefinition Get(long id)

Parameters

TypeNameDescription
longidEntity definition id.

Returns

TypeDescription
FluentEntityDefinitionThe FluentEntityDefinition or null if the entity definition does not exist.

Get(string)

Gets the FluentEntityDefinition instance by the specified name.

Declaration

public FluentEntityDefinition Get(string name)

Parameters

TypeNameDescription
stringnameEntity definition name (case insensitive).

Returns

TypeDescription
FluentEntityDefinitionThe FluentEntityDefinition or null if the entity definition does not exist.

GetMany(IEnumerable)

Gets the FluentEntityDefinition instances by the ids of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.

Declaration

public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<long> ids)

Parameters

TypeNameDescription
IEnumerable<>longidsThe ids.

Returns

TypeDescription
IEnumerable<>FluentEntityDefinitionNon null collection of FluentEntityDefinition instances.

GetMany(IEnumerable)

Gets the FluentEntityDefinition instances by the names of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.

Declaration

public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<string> names)

Parameters

TypeNameDescription
IEnumerable<>stringnamesEntity definition names (case insensitive).

Returns

TypeDescription
IEnumerable<>FluentEntityDefinitionNon null collection of FluentEntityDefinition instances.

New(string)

Creates an entity definition.

Declaration

public FluentEntityDefinition New(string name)

Parameters

TypeNameDescription
stringnameThe name of the entity definition to create.

Returns

TypeDescription
FluentEntityDefinitionAn instance of FluentEntityDefinition.
If you have suggestions for improving this article, let us know!