Class FluentEntityDefinitions

Current version: 3.4

Provides access to entity definitions in a fluent way.

Inheritance
object
FluentEntityDefinitions
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentEntityDefinitions

Constructors

FluentEntityDefinitions(IEntityDefinitionsClient)

Initializes a new instance of the FluentEntityDefinitions class.

Declaration
RequestResponse
public FluentEntityDefinitions(IEntityDefinitionsClient entityDefinitionsClient)
Parameters
TypeNameDescription
IEntityDefinitionsCliententityDefinitionsClient

The entity definitions client.

Methods

Get(long)

Gets the FluentEntityDefinition instance by the specified id.

Declaration
RequestResponse
public FluentEntityDefinition Get(long id)
Parameters
TypeNameDescription
longid

Entity definition id.

Returns
TypeDescription
FluentEntityDefinition

The FluentEntityDefinition or null if the entity definition does not exist.

Get(string)

Gets the FluentEntityDefinition instance by the specified name.

Declaration
RequestResponse
public FluentEntityDefinition Get(string name)
Parameters
TypeNameDescription
stringname

Entity definition name (case insensitive).

Returns
TypeDescription
FluentEntityDefinition

The FluentEntityDefinition or null if the entity definition does not exist.

GetMany(IEnumerable<long>)

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
RequestResponse
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<long> ids)
Parameters
TypeNameDescription
IEnumerable<>longids

The ids.

Returns
TypeDescription
IEnumerable<>FluentEntityDefinition

Non null collection of FluentEntityDefinition instances.

GetMany(IEnumerable<string>)

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
RequestResponse
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<string> names)
Parameters
TypeNameDescription
IEnumerable<>stringnames

Entity definition names (case insensitive).

Returns
TypeDescription
IEnumerable<>FluentEntityDefinition

Non null collection of FluentEntityDefinition instances.

New(string)

Creates an entity definition.

Declaration
RequestResponse
public FluentEntityDefinition New(string name)
Parameters
TypeNameDescription
stringname

The name of the entity definition to create.

Returns
TypeDescription
FluentEntityDefinition

An instance of FluentEntityDefinition.

Do you have some feedback for us?

If you have suggestions for improving this article,