Class FluentEntityDefinitions
Provides access to entity definitions in a fluent way.
Inheritance
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
Type | Name | Description |
---|---|---|
IEntityDefinitionsClient | entityDefinitionsClient |
The entity definitions client. |
Methods
Get(long)
Gets the FluentEntityDefinition instance by the specified id
.
Declaration
public FluentEntityDefinition Get(long id)
Parameters
Type | Name | Description |
---|---|---|
long | id |
Entity definition id. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
The 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
Type | Name | Description |
---|---|---|
string | name |
Entity definition name (case insensitive). |
Returns
Type | Description |
---|---|
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
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<long> ids)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<>long | ids |
The ids. |
Returns
Type | Description |
---|---|
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
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<string> names)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<>string | names |
Entity definition names (case insensitive). |
Returns
Type | Description |
---|---|
IEnumerable<>FluentEntityDefinition |
Non null collection of FluentEntityDefinition instances. |
New(string)
Creates an entity definition.
Declaration
public FluentEntityDefinition New(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the entity definition to create. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
An instance of FluentEntityDefinition. |